You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2014/12/05 15:55:06 UTC

svn commit: r1643307 - /isis/site/trunk/content/more-advanced-topics/How-to-suppress-contributions.md

Author: danhaywood
Date: Fri Dec  5 14:55:05 2014
New Revision: 1643307

URL: http://svn.apache.org/r1643307
Log:
new page on suppressing contributions

Modified:
    isis/site/trunk/content/more-advanced-topics/How-to-suppress-contributions.md

Modified: isis/site/trunk/content/more-advanced-topics/How-to-suppress-contributions.md
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/more-advanced-topics/How-to-suppress-contributions.md?rev=1643307&r1=1643306&r2=1643307&view=diff
==============================================================================
--- isis/site/trunk/content/more-advanced-topics/How-to-suppress-contributions.md (original)
+++ isis/site/trunk/content/more-advanced-topics/How-to-suppress-contributions.md Fri Dec  5 14:55:05 2014
@@ -27,15 +27,16 @@ The [PreferenceContributions](https://gi
 
 However, although "addPreference" and "removePreference" *are* contributed to both `Person` and `FoodStuff`, this can be hidden using the `.layout.json` file.  Thus, in [FoodStuff,layout.json](https://github.com/isisaddons/isis-app-kitchensink/tree/d4fd4e8b799af42c343b7e451bbf6f5d218869a1/dom/src/main/java/org/isisaddons/app/kitchensink/dom/contrib/contributee/FoodStuff.layout.json#L57-57) we have:
 
-  "actions": {
-    ...
-    "removePreference": {
-      "actionLayout": {
-        "cssClass": "btn-warn",
-        "hidden": "EVERYWHERE"
+
+    "actions": {
+      ...
+      "removePreference": {
+        "actionLayout": {
+          "cssClass": "btn-warn",
+          "hidden": "EVERYWHERE"
+        }
       }
     }
-  }
 
 which means that the "removePreference" action cannot be seen when viewing a FoodStuff entity.