This may not be anything directly related to Radiant but it seems pretty weird so I thought I better ask the experts. I have the following in a layout

<r:if_url matches="blog/..../../../.*$"><r:title /></r:if_url>

As far as I can tell this should match on the individual posts, which it does but the weird part is that it also matches for any monthly archive pages with a URL like "blog/2008/09/". I've even tried

<r:if_url matches="blog/..../../../.*$">
<r:unless_url matches="blog/..../../$">
<r:title />

but it still matches the monthly archive pages. From the looks of it I am going to have to have 2 layouts that are exactly the same with the exception of that one line with the regexp which doesn't seem optimal.

Anyone see what I'm missing here or someway to match on the individual posts but not on the monthly archives?

I tested the regexps in Reggy and they behave exactly as I'd expect, but once they are in Radiant they start making full matches where they shouldn't be.

Radiant mailing list

Reply via email to