How do I make it so tags without parameters passed don't get shown?
E.g. if I don't put a <subtitle:> tag, it still makes an empty <h4>
element.
I saw in the generated code stuff that put "if" at the end of the
parameter, so I tried that... at which point it stopped showing the
parameter everywhere.
sd
Steve DeBaun
unread,
Oct 19, 2008, 2:54:19 PM10/19/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Hobo Users
Found the solution:
<h3 param="title" if="&all_parameters.title?"/>
It looked like if-content should work as shorthand for
if="&all_parameters.title?", but it didn't. I also expected
"¶meters.title?" to work, but it didn't.
sd
Tom Locke
unread,
Oct 20, 2008, 3:32:32 AM10/20/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to hobo...@googlegroups.com
all_parameters[:title] will be slightly more efficient. Your version will actually evaluate the parameter and discard the result.