It's possible, but it's a lot harder to be sure that it will work every
time.

I'll poke around with it later if I get some time.

Spike

> -----Original Message-----
> From: Dave Phipps [mailto:[EMAIL PROTECTED]] 
> Sent: 14 August 2002 15:01
> To: [EMAIL PROTECTED]
> Subject: RE: [ cf-dev ] Regex and urltoken
> 
> 
> This is nearly spot on.  Just an aesthetic thing, would it be 
> possible to 
> get the #request.urltoken# put on the end of the whole url like this:
> 
> <a 
> href="index.cfm?fuseaction=intranet.content&contentid=2&#reque
st.urltoken#">My 
> link</a>
> 
> At the moment it is doing this:
> 
> <a 
> href="index.cfm?CFID=19437&CFTOKEN=77996404&fuseaction=intrane
> t.content&contentid=2">My 
> link</a>
> 
> Although this perfectly valid it doesn't look as nice as the top url.
> 
> Any suggestions?
> 
> What was the tag called in the devex?
> 
> Cheers
> 
> Dave
> 
> At 14:32 8/14/2002 +0200, you wrote:
> >Assuming you're always using index.cfm you could do something like 
> >this.
> >
> ><cfset newcontent = 
> >ReplaceNoCase(content,'index.cfm?','index.cfm?#request.urltok
en#&','all
> >'
> >)>
> >
> >Spike
> >
> > > -----Original Message-----
> > > From: Dave Phipps [mailto:[EMAIL PROTECTED]]
> > > Sent: 14 August 2002 14:27
> > > To: ColdFusion User group
> > > Subject: [ cf-dev ] Regex and urltoken
> > >
> > >
> > > Hi,
> > >
> > > I have some text containing the occasional href links that are 
> > > driven from a db query and I need to be able to append 
> the urltoken 
> > > to these links on
> > > the fly.
> > >
> > > I was thinking that I could use a regex for this but I can't even 
> > > begin to think what the regex would look like.
> > >
> > > The links coming from the db would look like this:
> > >
> > > <a href="index.cfm?fuseaction=intranet.content&contentid=2">My 
> > > link</a>
> > >
> > > and what I want to have it do is this:
> > >
> > > <a href="index.cfm?fuseaction=intranet.content&contentid=2&CFID=3
> >4234234&CFTOKEN=234234234243">My
> > > link</a>
> > >
> > > Is this possible?  the urltoken will be in the form of: 
> > > #request.urltoken#
> > >
> > > Thanks in advance.
> > >
> > > Dave
> > >
> > >
> > >
> > > ============================================
> > > Phipps CF Development
> > > Oxford, Oxfordshire.
> > > Telephone: +44(0)7718 896696
> > > http://www.phipps-cf.co.uk 
> > > ============================================
> > >
> > >
> > > --
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED] 
> > > For human help, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> >
> >
> >
> >--
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: 
> [EMAIL PROTECTED] For 
> >human help, e-mail: [EMAIL PROTECTED]
> 
> 
> ============================================
> Phipps CF Development
> Oxford, Oxfordshire.
> Telephone: +44(0)7718 896696
> http://www.phipps-cf.co.uk 
> ============================================
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED] For human help, e-mail: 
> [EMAIL PROTECTED]
> 
> 
> 



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]


Reply via email to