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:
<r:if cond="page.url matches page.slug"> your stuff here </r:if>
-Chris
Jeffrey Jones wrote:
Hoi all,
Does anyone know how I could get the following working?
<ul class="sidemenu" id="<r:slug/>" <r:unless_url matches="<r:slug/>"
ignore_case="true"> style="display: none;"</r:unless_url> >
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 <r:slug/> isn't being translated to
the actual slug value before being matched in the regexp.
Thanks
Jeff
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant