Plugins & Hacks

How can I get Nucleus to ignore things?

Scenario:
"I would like to request a skin/template variable that ignores all text within the tags. Essentially a comment tag to comment out chunks of (X)HTML/Nucleus code."

Solution:
Use a nonsensical but correct Nucleus if tags, such as

<%if(blogsetting,bnumber,999)%>
    <ignored code here>
<%endif%>

This can be done by giving any if tag a nonsensical value that does not exist, such as a skin that does not exist, a category that does not exist or a blog that does not exist.

Original forum thread (thanks, moraes!):
http://forum.nucleuscms.org/viewtopic.php?t=8759

section: Plugins & Hacks | submitted by Leng on 2005.Nov.03 | 3111 views

item rate
Total votes: 3 - Rating: 3.33

Please tell us how useful this answer was to you (0 = useless, 10 = very very helpful):

10