From 04df2a4a2062142caacccbafcaf7a03f4a3b6b46 Mon Sep 17 00:00:00 2001 From: buggyj Date: Wed, 10 Sep 2014 12:37:05 +0200 Subject: [PATCH 1/2] change filter to stop automatic view transclusion if field 'hide-me' is defined --- core/ui/ViewTemplate/body.tid | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/ui/ViewTemplate/body.tid b/core/ui/ViewTemplate/body.tid index c0cd21e50..dd3ace4dd 100644 --- a/core/ui/ViewTemplate/body.tid +++ b/core/ui/ViewTemplate/body.tid @@ -3,7 +3,8 @@ tags: $:/tags/ViewTemplate
-<$list filter="[all[current]!has[plugin-type]]"> +<$list filter="[all[current]!has[plugin-type]!has[hide-body]]"> + <$transclude> From ab944bbf02e9fae606632a11df1053a46573fa49 Mon Sep 17 00:00:00 2001 From: buggyj Date: Wed, 10 Sep 2014 18:00:29 +0200 Subject: [PATCH 2/2] change filter to stop automatic view transclusion if field 'hide-body' has the value 'yes' --- core/ui/ViewTemplate/body.tid | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/ui/ViewTemplate/body.tid b/core/ui/ViewTemplate/body.tid index dd3ace4dd..74aae5d6f 100644 --- a/core/ui/ViewTemplate/body.tid +++ b/core/ui/ViewTemplate/body.tid @@ -3,8 +3,7 @@ tags: $:/tags/ViewTemplate
-<$list filter="[all[current]!has[plugin-type]!has[hide-body]]"> - +<$list filter="[all[current]!has[plugin-type]!field:hide-body[yes]]"> <$transclude>