Re: [Radiant] Menu and Page Menus

2006-09-22 Thread Ian Gordon
Kevin Ansfield wrote: > > truncated > > If anyone thinks it would be worthwhile, I can see what I can do about > packaging this up into a plugin. You don't even have to ask man, just do it and if people like it awesome, if they don't hey, at least you contributed. -- Posted via http

Re: [Radiant] Menu and Page Menus

2006-09-21 Thread Dave Crossland
On 21/09/06, Kevin Ansfield <[EMAIL PROTECTED]> wrote: > > If anyone thinks it would be worthwhile, I can see what I can do about > packaging this up into a plugin. Yes please! :-) -- Regards, Dave ___ Radiant mailing list Post: Radiant@lists.radiant

Re: [Radiant] Menu and Page Menus

2006-09-21 Thread Kevin Ansfield
Hi Guys, Unfortunately there appears to be some core behaviour stopping Seans code above from working - see trac ticket http://dev.radiantcms.org/radiant/ticket/450 I've put my own stopgap solution together, utilizing the logic that Sean posted: class Behavior::Base class TagError < St

Re: [Radiant] Menu and Page Menus

2006-09-21 Thread Sean Cribbs
Because of a limitation in the way that snippets are rendered, the code I posted earlier will not limit which children of the root of your sitemap are rendered.  Essentially, everytime you get to the tag, tag.globals.page will equal tag.locals.page.  I intend to leave a more detailed ticket on th

Re: [Radiant] Menu and Page Menus

2006-09-21 Thread Sean Cribbs
Ok, I've got it.  Let's take the "sitemap" snippet from the wiki and modify it.The part we'll put in our page will look like this: The sitemapper snippet, slightly modified: Then our new global tag definition (I'm using the PageCon

Re: [Radiant] Menu and Page Menus

2006-09-21 Thread Sean Cribbs
You may be able to modify the "sitemap" snippet that's on the wiki to do just that, perhaps with only one global tag creation.  I've been mulling around how to do this.  I'll get back to you. (I sense a new "how to" article.) Sean Cribbsseancribbs.comOn 9/21/06, Ian Gordon <[EMAIL PROTECTED] > wrot

Re: [Radiant] Menu and Page Menus

2006-09-21 Thread Ian Gordon
Dave Crossland wrote: > I'd be very interested to see what you come up with for this :-) > > Rather than a behaviour, perhaps a 'Global Tag' is more like what you > want to make: > > http://dev.radiantcms.org/radiant/wiki/HowToDefineGlobalTags > > -- > Regards, > Dave I am too Dave, I am too...

Re: [Radiant] Menu and Page Menus

2006-09-18 Thread Dave Crossland
On 18/09/06, Ian Gordon <[EMAIL PROTECTED]> wrote: > > Anyway, let me know if anyone thinks this is worthwhile and how I > might go about implementing it. I'd be very interested to see what you come up with for this :-) Rather than a behaviour, perhaps a 'Global Tag' is more like what you want to

Re: [Radiant] Menu and Page Menus

2006-09-18 Thread Kevin Ansfield
Hi Ian, There is a recent thread dealing with this issue, you can check it out on the ruby-forum archive here http://www.ruby-forum.com/topic/81640 No one has posted a complete solution yet, but there are a few ideas floating around in there and definately some interest in getting something ma

[Radiant] Menu and Page Menus

2006-09-18 Thread Ian Gordon
Hello. My name is Ian Gordon. I am new to Radiant and new to ruby. I am trying to figure out how I can get the menu for pages I create to be autogenerated for me, like the breadcrumbs. I was thinking it would involve the radius tags and maybe the creation of a behavior so that if I create a page p