21 August 2014 at 1:21pm
(Last edited: 21 August 2014 1:22pm),
Right: I've got a editable field called SidebarHTML in my template. It allows Site Editors to click on a 'Sidebar' tab in the CMS and enter field that is then displayed on the page. Even I can see it's not rocket science! But how do I get rid of the field/background if there is NO content (nothing, nada, none) in the SidebarHTML field?
28 August 2014 at 7:00am
$SidebarHTML is just the content of the textField? So there's some HTML around that in your template that constructs the sidebar? That should be withinin the <% if %> conditional as well. But you probably did that... Also it wouldn't work if the htmltext contained only tags and/or spaces instead of visible text for some reason...