Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Template Question : What this means

Quote Reply
Template Question : What this means
I am having couple of question. Can someone tell me what these means & does

1)
Quote:
<div class="row<%if Folders.length > 1%> required<%endif%> clear">

2)
Quote:
<div class="value<%if Folders.length == 1%> wrappedtext<%endif%>">

3)
Quote:
<%~if Folders.length == 1%>
<input type="hidden" name="my_folder_id_fk" value="<%escape_html Folders.0.my_folder_id%>" /><%Folders.0.my_folder_name%>

All these tags appear in bookmark_link_add.html page.

Sorry for asking silly questions, but I am working on creating a whole new template from scratch.

Thanks for the help.

Vishal

Vishal
-------------------------------------------------------
Quote Reply
Re: [SWDevil.Com] Template Question : What this means In reply to
1)
Quote:
<div class="row<%if Folders.length > 1%> required<%endif%> clear">
If there's more than one folder then it applies the required css class (if there's only one folder, you don't have a choice of which folder to use, so it isn't required).

2)
Quote:
<div class="value<%if Folders.length == 1%> wrappedtext<%endif%>">
A special class to make things wrap properly.

3)
Quote:
<%~if Folders.length == 1%>
<input type="hidden" name="my_folder_id_fk" value="<%escape_html Folders.0.my_folder_id%>" /><%Folders.0.my_folder_name%>
Same as 1), there's only one folder to choose from, so it's not a select list now.

Adrian
Quote Reply
Re: [brewt] Template Question : What this means In reply to
I am not using the template that came with GLinks, however am learning from them and creating a whole new one from scratch & I am doing the same with CSS.

Any idea what tags shall I use on regular template set (combination of html tables & css) for folder.lenght, as I didn't saw any info about folder.length using the gt:template:dump code.

Thanks for the help.

Vishal

Vishal
-------------------------------------------------------