Re: [Radiant] slug inside url_matches
I patched Radius so that you can use tags as attributes in other tags. (Posted to this list five days ago) Extremely useful and only a couple of lines have to be changed actually. If anyone is interested I can make a patch. Manuel On Thu, Oct 16, 2008 at 7:12 PM, Chris Parrish <[EMAIL PROTECTED]> wrote: > For sure Radiant's parser won't permit tags within tags but this sounds like > a job for... > an extension I built and need to re-release. > > I have some pretty lofty goals for this weekend involving Radiant. And > getting my conditionals extension back online is one of them. So maybe > I'll have something for you next week (fingers crossed). > > Just FYI, using my extension you'd do something like: >your stuff here > > -Chris > > > Jeffrey Jones wrote: >> >> Hoi all, >> >> Does anyone know how I could get the following working? >> >> > ignore_case="true"> style="display: none;" > >> >> Basically, if the page's slug is in the url somewhere I want the css style >> display to be none. I have tried with double and single quotes but this >> doesn't appear to be working. Using a hard-coded value instead works. I am >> assuming the isn't being translated to the actual slug value >> before being matched in the regexp. >> >> Thanks >> >> Jeff >> >> >> ___ >> Radiant mailing list >> Post: Radiant@radiantcms.org >> Search: http://radiantcms.org/mailing-list/search/ >> Site: http://lists.radiantcms.org/mailman/listinfo/radiant > > ___ > Radiant mailing list > Post: Radiant@radiantcms.org > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] slug inside url_matches [SOLVED]
Thank you all, ancestor_or_self works nicely. Jeff Sean Cribbs wrote: An alternative is or , which will do close to what you want. Sean Jeffrey Jones wrote: Hoi all, Does anyone know how I could get the following working? ignore_case="true"> style="display: none;" > Basically, if the page's slug is in the url somewhere I want the css style display to be none. I have tried with double and single quotes but this doesn't appear to be working. Using a hard-coded value instead works. I am assuming the isn't being translated to the actual slug value before being matched in the regexp. Thanks Jeff ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] slug inside url_matches
For sure Radiant's parser won't permit tags within tags but this sounds like a job for... an extension I built and need to re-release. I have some pretty lofty goals for this weekend involving Radiant. And getting my conditionals extension back online is one of them. So maybe I'll have something for you next week (fingers crossed). Just FYI, using my extension you'd do something like: your stuff here -Chris Jeffrey Jones wrote: Hoi all, Does anyone know how I could get the following working? ignore_case="true"> style="display: none;" > Basically, if the page's slug is in the url somewhere I want the css style display to be none. I have tried with double and single quotes but this doesn't appear to be working. Using a hard-coded value instead works. I am assuming the isn't being translated to the actual slug value before being matched in the regexp. Thanks Jeff ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] slug inside url_matches
On Oct 16, 2008, at 11:17 AM, Jeffrey Jones wrote: Hoi all, Does anyone know how I could get the following working? style="display: none;" > Basically, if the page's slug is in the url somewhere I want the css style display to be none. I have tried with double and single quotes but this doesn't appear to be working. Using a hard-coded value instead works. I am assuming the isn't being translated to the actual slug value before being matched in the regexp. Thanks Jeff You can't put radius tags inside attributes of radius tags. Perhaps this will do it: style="display: none;"> if_self will expand it's contents if the context of the current radius page may be found with the current url. Also look into if_ancestor_or_self Jim Gay http://www.saturnflyer.com ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] slug inside url_matches
An alternative is or , which will do close to what you want. Sean Jeffrey Jones wrote: Hoi all, Does anyone know how I could get the following working? ignore_case="true"> style="display: none;" > Basically, if the page's slug is in the url somewhere I want the css style display to be none. I have tried with double and single quotes but this doesn't appear to be working. Using a hard-coded value instead works. I am assuming the isn't being translated to the actual slug value before being matched in the regexp. Thanks Jeff ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] slug inside url_matches
That is a limitation in Radius. http://wiki.radiantcms.org/Introduction_to_Radius Could the ... tag work? On 2008/10/16, at 09:17, Jeffrey Jones wrote: Hoi all, Does anyone know how I could get the following working? style="display: none;" > Basically, if the page's slug is in the url somewhere I want the css style display to be none. I have tried with double and single quotes but this doesn't appear to be working. Using a hard-coded value instead works. I am assuming the isn't being translated to the actual slug value before being matched in the regexp. Thanks Jeff ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] slug inside url_matches
Hoi all, Does anyone know how I could get the following working? ignore_case="true"> style="display: none;" > Basically, if the page's slug is in the url somewhere I want the css style display to be none. I have tried with double and single quotes but this doesn't appear to be working. Using a hard-coded value instead works. I am assuming the isn't being translated to the actual slug value before being matched in the regexp. Thanks Jeff ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant