Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit be72d8f37578d89cbe8272e581ef483f140e7aab 1 parent 5a33fda
@mworrell mworrell authored
Showing with 10 additions and 8 deletions.
  1. +10 −8 modules/mod_base_site/templates/text/blocks/_block_view_page.tpl
View
18 modules/mod_base_site/templates/text/blocks/_block_view_page.tpl
@@ -1,11 +1,13 @@
{% with blk.rsc_id as id %}
-{% if blk.style == 'quote' %}
- {% catinclude "blocks/_block_view_page_quote.tpl" id blk=blk %}
-{% elseif blk.style == 'info' %}
- {% catinclude "blocks/_block_view_page_info.tpl" id blk=blk %}
-{% elseif blk.style == 'aside' %}
- {% catinclude "blocks/_block_view_page_aside.tpl" id blk=blk %}
-{% else %}
- {% catinclude "blocks/_block_view_page_inline.tpl" id blk=blk %}
+{% if id.exists and id.is_visible %}
+ {% if blk.style == 'quote' %}
+ {% catinclude "blocks/_block_view_page_quote.tpl" id blk=blk %}
+ {% elseif blk.style == 'info' %}
+ {% catinclude "blocks/_block_view_page_info.tpl" id blk=blk %}
+ {% elseif blk.style == 'aside' %}
+ {% catinclude "blocks/_block_view_page_aside.tpl" id blk=blk %}
+ {% else %}
+ {% catinclude "blocks/_block_view_page_inline.tpl" id blk=blk %}
+ {% endif %}
{% endif %}
{% endwith %}

0 comments on commit be72d8f

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