SimplePortal
Customization => Custom Coding => Topic started by: matt1122 on May 26, 2010, 01:18:01 PM
-
Hello, all. I have made a Custom PHP block on my site which shows the newsfader. I want to set it to disappear completely (so the frame is not even shown) if (empty($context['fader_news_lines']). I have thought of two wayas this might be doable, but am not sure how to execute either:
1. Using the custom display options for the block?
2. Using php and javascript to change the element to display:none.
Is there any chance someone here knows how this can be done, or what the simplest way to do it is?
Edit: A potential third option?
3. Setting the block class to null and then manually re-creating the visible block within the custom PHP code for the block.
I could probably execute #3 just fine on my own if 1 and 2 are not doable, but I haven't tried yet.