@Dan,

Sorry, I had to read the doc that Ezra posted to understand the
flexibility of what you were suggesting, because what you gave as an
example didn't save anything.  But with linkTo() giving the ability to
change url format, its an invaluable tool.  Incorporating that into my
custom tag, which I'd still hoped to find someone using a helper, I
have...

<cfparam name="Attributes.values" type="string" />
<cfparam name="Attributes.event" type="struct"
default="#CALLER.event#" />

<cfif thisTag.ExecutionMode is 'start'>
  <cfloop list="#Attributes.values#" index="i">
    <cfset event = Attributes.event.GetValue(i)>
    <cfset CALLER["#i#"] = Attributes.event.linkTo( event )>
  </cfloop>
</cfif>

Its only for basic links, not for examples like the linkTo() docs that
show additional arguments.  But since most of my duplicate efforts
were variable = myself & xe.value it'll do until I hear better
suggestions.  The only thing I don't like about it is readability.
I'll have to name the tag something better like, mgToURL.

-- 
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

Reply via email to