The value ID must be set into the event first.
so if you have a local variable called ID already set, just set it in
the event right in the view.
<cfset id = 1 />
<cfset event.setvalue('id',id) />
<cfoutput><a href="#event.linkTo('some.event','id')#">Link</a></
cfoutput>
This will create a link like /?event=some.event&id=1
Sean
On Feb 18, 12:28 am, David Mineer <[email protected]> wrote:
> Bump.
>
> I would really like to hear how people handle this. Forgive the bump.
>
> How can I do the following with linkto():
>
> <a href="Showdetail?myrecordid=#id#>Show Detail</a>
>
> I use this type of link alot to pass variables. Is it bad? Is there a
> better way that allows me to use linkto()?
>
> Thanks,
>
>
>
> On Mon, Feb 9, 2009 at 3:30 PM, David Mineer <[email protected]> wrote:
> > So what do people do? I must be thinking wrong here. If you have a list
> > of unique id's how do you set up those links with MG3:
>
> > <CFOUTPUT query="myQuery">
> > <a href="showdetail?myrecordid=#myQuery.id#
> > </CFOUPTUT>
>
> > Is Adam's solution the only way I can do this. What would everyone else
> > do? I do feel that SES is very important.
>
> > On Mon, Feb 9, 2009 at 7:33 AM, Adam Tuttle <[email protected]>wrote:
>
> >> I wrote a custom URL Manager for this reason, which expands on the current
> >> one to keep its existing functionality, but if the 2nd argument is a
> >> structure instead of a string, it uses the key/value pairs from the
> >> structure instead of pulling the values out of the event context.
>
> >> Here's my basic version:http://atuttle.pastebin.com/f31871859
>
> >> And my SES version:http://atuttle.pastebin.com/feb8ff93
>
> >> Adam
>
> > --
> > David Mineer Jr
> > ---------------------
> > The critical ingredient is getting off your
> > butt and doing something. It's as simple
> > as that. A lot of people have ideas, but
> > there are few who decide to do
> > something about them now. Not
> > tomorrow. Not next week. But today.
> > The true entrepreneur is a doer.
>
> --
> David Mineer Jr
> ---------------------
> The critical ingredient is getting off your
> butt and doing something. It's as simple
> as that. A lot of people have ideas, but
> there are few who decide to do
> something about them now. Not
> tomorrow. Not next week. But today.
> The true entrepreneur is a doer.
--~--~---------~--~----~------------~-------~--~----~
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
For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---