Re: [Radiant] if_url in layouts?

2011-02-21 Thread Anton J Aylward
craayzie said the following on 02/21/2011 07:22 PM:
.
> I'm trying to use if_url to conditionally include jquery on my /
> contact page but it doesn't seem to be working:
> 
> 
>src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js";>
>   
> 
> 
> Any ideas what I might be doing wrong?

I don't know about "doing wrong"
but I have something that works.

In my layout I have this




.







Why do I do this?

I'm one of those obsessive people who think that script and css belong
in the  and not in the 
This lets me set up a page part which means that if any page needs
special JS or CSS is can have it ... in the 

Now if you were to add in there

inherit="true"

you could put a page-part "head" in the "/contact"
with the JS and it would apply to everything below it.

which is what you are trying to achieve.

And it would not appear in any other pages.
No need for the 


You've localised the scope of the impact and made it much more general,
something that can be applied and expanded later without the need to
revise your layout.

As for the syntax of your 

Re: [Radiant] if_url in layouts?

2011-02-21 Thread Rachel Soma
Try 

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]  [image:
LinkedIn]  [image:
Flickr] [image:
Twitter] 
Contact me: [image: Google Talk/] ms.rachel.soma


On Tue, Feb 22, 2011 at 11:22 AM, craayzie  wrote:

> I'm trying to use if_url to conditionally include jquery on my /
> contact page but it doesn't seem to be working:
>
>
>  http://ajax.googleapis.com/
> ajax/libs/jquery/1.5.0/jquery.min.js">
>
>
> Any ideas what I might be doing wrong?


[Radiant] if_url in layouts?

2011-02-21 Thread craayzie
I'm trying to use if_url to conditionally include jquery on my /
contact page but it doesn't seem to be working:


  http://ajax.googleapis.com/
ajax/libs/jquery/1.5.0/jquery.min.js">


Any ideas what I might be doing wrong?