Skip to content
This repository
Browse code

Fix for page blocks that are invisible of don't exist (anymore)

  • Loading branch information...
commit be72d8f37578d89cbe8272e581ef483f140e7aab 1 parent 5a33fda
Marc Worrell authored
18  modules/mod_base_site/templates/text/blocks/_block_view_page.tpl
... ...
@@ -1,11 +1,13 @@
1 1
 {% with blk.rsc_id as id %}
2  
-{% if blk.style == 'quote' %}
3  
-	{% catinclude "blocks/_block_view_page_quote.tpl" id blk=blk %}
4  
-{% elseif blk.style == 'info' %}
5  
-	{% catinclude "blocks/_block_view_page_info.tpl" id blk=blk %}
6  
-{% elseif blk.style == 'aside' %}
7  
-	{% catinclude "blocks/_block_view_page_aside.tpl" id blk=blk %}
8  
-{% else %}
9  
-	{% catinclude "blocks/_block_view_page_inline.tpl" id blk=blk %}
  2
+{% if id.exists and id.is_visible %}
  3
+	{% if blk.style == 'quote' %}
  4
+		{% catinclude "blocks/_block_view_page_quote.tpl" id blk=blk %}
  5
+	{% elseif blk.style == 'info' %}
  6
+		{% catinclude "blocks/_block_view_page_info.tpl" id blk=blk %}
  7
+	{% elseif blk.style == 'aside' %}
  8
+		{% catinclude "blocks/_block_view_page_aside.tpl" id blk=blk %}
  9
+	{% else %}
  10
+		{% catinclude "blocks/_block_view_page_inline.tpl" id blk=blk %}
  11
+	{% endif %}
10 12
 {% endif %}
11 13
 {% endwith %}

0 notes on commit be72d8f

Please sign in to comment.
Something went wrong with that request. Please try again.