Thanks John! That did the trick :) Turns out I was placing if_url in the wrong layout. As soon as I moved it to the correct layout the if_url match worked perfectly.
Thanks for the help! On Feb 21, 7:37 pm, john <[email protected]> wrote: > On Monday, February 21, 2011 8:07:33 PM UTC-6, craayzie wrote: > > > Thanks for the reply but the url is actually just "/contact" > > output <r:url/> on the page and you'll see radiant believes otherwise. that > said `^/contact` should match as should `con` etc. etc. do you get different > results with <r:if_url matches='^/contact/$'>...? > > > > > > > > > On Feb 21, 4:29 pm, Rachel Soma <[email protected]> wrote: > > > Try <r:if_url matches="^/contact?"> > > > > There's a / on the end of the url which is why your regex match isn't > > > matching the url > > > > [image: Rachel]*Rachel Young* > > > >www.rachelsoma.com > > > My profiles: [image: Facebook] <http://www.facebook.com/rachelsoma> > > [image: > > > LinkedIn] <http://au.linkedin.com/in/rachellyoung> [image: > > > Flickr]<htpp://www.flickr.com/photos/rachelyoung> [image: > > > Twitter] <http://www.twitter.com/rachelsoma> > > > Contact me: [image: Google Talk/] ms.rachel.soma > > > > On Tue, Feb 22, 2011 at 11:22 AM, craayzie <[email protected]> wrote: > > > > I'm trying to use if_url to conditionally include jquery on my / > > > > contact page but it doesn't seem to be working: > > > > > <r:if_url matches="^/contact"> > > > > <script type="text/javascript" src="http://ajax.googleapis.com/ > > > > ajax/libs/jquery/1.5.0/jquery.min.js"></script> > > > > </r:if_url> > > > > > Any ideas what I might be doing wrong?
