Closed (duplicate)
Project:
Fusion
Version:
7.x-2.0-beta2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Apr 2012 at 16:45 UTC
Updated:
25 Mar 2013 at 11:46 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
sheena_d commentedthe conditional for the node_top and node_bottom regions is based on whether or not the node is displayed as a teaser or full node. If you want to hide the regions' wrapping divs when the regions are empty, you can add a check for the region to the page.tpl.php file.
Change the following chunk of code:
to match this:
And then repeat for the node_bottom region.
Comment #2
hixster commentedHi Sheena, thanks for that, I understand how to make the wrappers conditional, my question was more to do with why they are not conditional by default.
Is there a purpose to the wrapper being printed even when empty?
Comment #3
hixster commentedany thoughts on this?
Comment #4
hixster commentedChanging status
Comment #5
hixster commentedstill no solution to this - node bottom is appearing in our pages even though there is no content in it which causes unnecessary spacing issues.See attachments in next post...
Update - this is wrong actually, Sheena did post the solution above, I'm still curious as to why this is like this.
There doesn't seem to be any reason to print empty regions.
Comment #6
hixster commentedAttachments...
Comment #7
joulymask commentedSheena_d can you explain '
if (!$teaser):' this part I am not getting the condition :/ sorry for silly question :/--------------------------------------------------
http://www.timeology.net/
Comment #8
getmensuit commentedI am also waiting for it !
Comment #9
hixster commentedwaiting for what exactly?
Comment #10
webkenny commentedThis is actually a duplicate of #1772370: Fusion prints empty regions for no reason which has a patch ready for you to test and provide feedback on. :) We'll commit once we get a few folks testing it.
Comment #13
hixster commented