Re: [Radiant] if_url problem

2009-12-01 Thread Charles Roper
2009/12/1 Sean Cribbs 

> I've run into this before with the archive index pages.  The unexpected
> thing is that it does match the url, because the plain url of the
> archive index page is something like:
>
> /news/2009/10/31/%b-%y-archives
>

Ah-ha. Thanks, that gave me enough info to solve it. The monthly archive
page has a slug of "monthly-archive", therefore the following worked:


  


Thanks for the help, Sean, much appreciated. :)

Charles
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] if_url problem

2009-12-01 Thread Sean Cribbs
Charles Roper wrote:
> Hey all,
>
> I've got a problem with using  in a layout for a news (Archive)
> page. I am trying to display a snippet based on the URL. Here's the bit of
> my layout in question:
>
> 
>   
> 
>
> So, in other words, if we're on a news article page (if there is any
> character present after the trailing slash), then display the snippet.
> Trouble is, the snippet also gets displayed on the monthly archive page,
> where the regex doesn't match the URL. However, it *doesn't* display on the
> /news/ URL.
>   
I've run into this before with the archive index pages.  The unexpected 
thing is that it does match the url, because the plain url of the 
archive index page is something like:

/news/2009/10/31/%b-%y-archives

This is despite the fact that the page really responds to only its 
shortened version. You can verify this url by hovering over the title of 
the archive index page in the sitemap.

Sean
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant