mail insert attributes into anchor tags created by nav object
Feb 27, 2011; 16:43
mail
insert attributes into anchor tags created by nav object
<html><body><span style="font-family:Verdana; color:#000000; font-size:10pt;"><div>In the nav object, I would like the links to have a specific attribute inserted. How best to accomplish that? I thought that the "param" parameter in the insert method would allow me to specify param or params that should be sent along with nav links, but i not sure what it means "sent along" I was hoping it meant links would include the parameters I submit, for example:<br><br> $nav->(insert( <br> -key='logout', <br> -label='Logout',<br> -param='data-ajax="false"'));<br><br>would end up creating a link<br><br><a href="/logout/" data-ajax="false">Logout</a><br><br>That did not happen though. Is there some way to accomplish that? Or do i need to mangle the renderhtml output?<br><br>[(String_Replace:-Find='<a',-Replace='<a data-ajax="false"',$nav->renderhtml)]<br><br>Maybe that is OK if I want ALL links to be replaced, but will be very tricky if I only want select links to have data-ajax="false"<br mce_bogus="1"></div></span></body></html> <P><PRE>-- =0D #############################################################=0D This message is sent to you because you are subscribed to=0D the mailing list <knop@lists.montania.se>.=0D To unsubscribe, E-mail to: <knop-off@lists.montania.se>=0D Send administrative queries to <knop-request@lists.montania.se>=0D List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html=0D Project homepage http://montania.se/projects/knop/=0D Google Code has the latest downloads at http://code.google.com/p/knop/
Feb 28
Steve Piercy - Web Site Builder Re: insert attributes into anchor tags created by nav object
Feb 28, 2011; 02:18
Steve Piercy - Web Site Builder
Re: insert attributes into anchor tags created by nav object
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!