available keywords for the -template parameter

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

available keywords for the -template parameter

mail
What are the available keywords for the -template parameter?

#label#
#link##/link#

Are these all supposed to be a single word surrounded by pound signs?

Which of these require an open and close such as #link# something #/link#

I suppose there is no way to but something INSIDE of the anchor tag created by #link# (which just produces <a href="path/"> )

Michael

-- 

#############################################################

This message is sent to you because you are subscribed to

the mailing list <[hidden email]>.

To unsubscribe, E-mail to: <[hidden email]>

Send administrative queries to  <[hidden email]>

List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html

Project homepage http://montania.se/projects/knop/

Google Code has the latest downloads at http://code.google.com/p/knop/


	
	
	
	
Reply | Threaded
Open this post in threaded view
|

Re: available keywords for the -template parameter

stevepiercy
On 2/28/11 at 4:38 AM, [hidden email] pronounced:

>What are the available keywords for the -template parameter?
>#label#
>#link##/link#

 From help.lasso:

-> insert
Adds a navigation item to nav structure
Parameters:
...
-template (optional) Template to use only for this specific nav
item, in the form #link##label##current##/link##children#

>Are these all supposed to be a single word surrounded by pound signs?

Yup.

>Which of these require an open and close such as #link# something #/link#

Just that one.

>I suppose there is no way to but something INSIDE of the anchor
>tag created by #link# (which just produces <a href="path/"> )

Well, yes, but not arbitrary HTML.  -title and -class are two
parameters that may be inserted into <a>.

You can modify the source of knop.lasso or nav.inc to make it do
what you want.  It's pretty simple to just look at an existing
example for knop_nav, like title, and duplicate it throughout
the type.

--steve

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Steve Piercy               Web Site Builder              
Soquel, CA
<[hidden email]>                  <http://www.StevePiercy.com/>


--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/