I generally use event.linkTo for all my links:
<cfsilent>
<cfset event.copyToScope( variables,
"ClientResolver,xe_contactus,xe_CoordinatorRegisterForm,xe_register" ) />
<cfset handleContactUs = event.linkTo( xe_contactus ) />
<cfset handleRegister = event.linkTo( xe_register ) />
<cfset handleCoordinatorRegisterForm = event.linkTo(
xe_CoordinatorRegisterForm ) />
</cfsilent>
I also stick them all at the top, inside a CFsilent tag, to keep
everything organized and keep the MG specific code out of the content
areas of the views.
I do append parameters whenever it makes sense inside the content areas
though...
<a href="#handleContactUs#&EmailContent=I would like to schedule a
demonstration of ChallengeWave">Contact us to set up a demonstration
»</a>
DW
Trevor Orr wrote:
I have started playing with the linkTo function and was thinking that
it would be better to use that for every link instead of just links
where there are parameters passed on the url. For example a
navigation bar, do you think that would be best practice? To use just
one method of generating link.
--
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en
--
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en