Hmmm that's do-able.
OK, personal prefrence question:
would you (a) put in all arguments in the call, leaving spaces for no values
(as in vb/vbs)
<siteTags:menuLink attr="index.cfm,,home">
or (b) treat it as an array in the tag code
{
if (arrayLen(arguments) GT 2) optionalThirdParam = arguments[3]
}
or (c) is there an easier/better way?
cheers
barry.b
-----Original Message-----
From: Lindsay Evans [mailto:[EMAIL PROTECTED]
Sent: Monday, 11 August 2003 11:49 AM
To: CFAussie Mailing List
Subject: [cfaussie] RE: taglib quick question
How about something like this:
<siteTags:menuLink attr="index.cfm,home">
Then access the attribute as a list.
--
Lindsay Evans.
Developer,
Red Square Productions.
[p] 8596.4000
[f] 8596.4001
[w] www.redsquare.com.au
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Beattie,
> Barry
> Sent: Monday, August 11, 2003 11:25 AM
> To: CFAussie Mailing List
> Subject: [cfaussie] taglib quick question
>
>
> OK, taglibs make more sence for output than CFC's.
>
> so, using an example on http://blog.daemon.com.au/archives/000143.html
>
> is there any way I don't have to specify the *name* of the
> attribute to pass
> to the tag
>
> eg: instead of
> <siteTags:menuLink link="index.cfm" linkText="home">
>
> which relys on
> <cfparam name="attributes.link" default="home.cfm">
> <cfparam name="attributes.linkText" default="home">
>
> I can just use the order the attributes are passes (this doesn't work)?
> <siteTags:menuLink "index.cfm", "home">
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/