Using CB3 and I am building my handlers and want to create my
navigation using the event.buildLink, but how do I set the links
"name" that the user would click on.
In the default app document it is used like this:
<cfloop list="#getSetting("RegisteredHandlers")#" index="handler">
What would replace #handler# with so it would display "Contact Us" and
how would you set that value in the handler?
Don’t do it dynamically. Looping like that makes sense for that initial start page but, generally speaking, is not something you’d do yourself. You can just make a link yourself like:
<a href="#event.buildlink(“handler.contactus”)#">contact us
So what is 'best practice' in referencing assets (images, pdf's,
Hmm. Best might be relative but some options are:
- Just include it in your page
- Decorate your request context to add them however you like (example 1 in the link)
- Use the coldbox HTML object to add them (example 2 in the link)