Re: [Radiant] Navigation Menu Sub-levels
Mauricio Dulce said the following on 11/19/2009 07:05 PM: > Hello, I'm finishing a web mounted radiant, but I need to generate a > two-level navigation, and searched and not found such information and > I am using this reference to create the menu. > > The idea is that this will render me this menu No it won't. produces a single menu. It may or may not have anything to do with the hierarchy of pages. You could write http://www.google.com "> The point I'm making here is that is completely arbitrary. It need not follow the hierarchy. *IF* - and its a big if - you want a menu that follows you page hierarchy, AND you want something like suckerfish menus, then a) see my post on this last week b) from the 'root'(which may not be / ) This will dynamically generate the two level menu. But please see my post about menus from last week -- There are still places where people think that the function of the media is to supply information -- Donn Rottenburg ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Navigation Menu Sub-levels
Check out navigation tags which I have found helpful: http://github.com/derencius/navigation_tags/ --- Nicholas Henry Ruby on Rails Developer nicho...@firsthand.ca Firsthand Web Design and Development Website http://www.firsthand.ca Twitter http://twitter.com/firsthand Blog http://blog.firsthand.ca/ Fork me on Github http://github.com/firsthand On Thu, Nov 19, 2009 at 7:05 PM, Mauricio Dulce wrote: > Hello, I'm finishing a web mounted radiant, but I need to generate a > two-level navigation, and searched and not found such information and > I am using this reference to create the menu. > > > r:normal> > > > > | > > The idea is that this will render me this menu > > > > > Item 1 > Item 2 > Item 3 > > Sub Item 2.1 > Sub Item 2.2 > Sub Item 2.3 > Sub Item 2.4 > > > Item 4 > Item 5 > > Sub Item 5.1 > Folder 5.2 > > Sub Item 5.1.1 > Sub Item 5.1.2 > Folder 5.1.3 > > Sub Item 5.1.3.1 > > Sub Item 5.1.3.1.1 > > > Sub Item 5.1.3.2 > Sub Item 5.1.3.3 > Sub Item 3.1.3.4 > Sub Item 3.1.3.5 > > > Sub Item 5.1.4 > > > > > Item 6 > > > ___ > 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] Navigation
Someone should put that on a sign or t-shirt! Sean Jim Gay wrote: Fork. Branch. Spec. Code. Pull Request. On Jun 3, 2009, at 5:23 PM, Rafael Souza wrote: I fixed it modifying the core radiant. There is a simple way to contribute? On Wed, Jun 3, 2009 at 5:41 PM, Sean Cribbs wrote: Rafael, Try adding slashes on the ends of your URLs; and yes, has pretty primitive matching of URLs. Sean Rafael Souza wrote: I am using the navigation radius tag for my menu, and today I noticed a little bug... My snippet is like this: I noticed that, as the "rafael" is in "rafaels page" string, when the user is in "rafaels pages", the two items have the "selected" class! I had searched a bit but I couldn't find where I fix it. Thanks, Rafael Souza ___ 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 ___ 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] Navigation
I fixed it modifying the core radiant. There is a simple way to contribute? On Wed, Jun 3, 2009 at 5:41 PM, Sean Cribbs wrote: > Rafael, > > Try adding slashes on the ends of your URLs; and yes, has > pretty primitive matching of URLs. > > Sean > > Rafael Souza wrote: > >> I am using the navigation radius tag for my menu, and today I noticed a >> little bug... >> >> My snippet is like this: >> >> >> >>> /> >>> /> >> >> >> I noticed that, as the "rafael" is in "rafaels page" string, when the user >> is in "rafaels pages", the two items have the "selected" class! >> >> I had searched a bit but I couldn't find where I fix it. >> >> Thanks, >> >> Rafael Souza >> ___ >> 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] Navigation
Fork. Branch. Spec. Code. Pull Request. On Jun 3, 2009, at 5:23 PM, Rafael Souza wrote: I fixed it modifying the core radiant. There is a simple way to contribute? On Wed, Jun 3, 2009 at 5:41 PM, Sean Cribbs wrote: Rafael, Try adding slashes on the ends of your URLs; and yes, has pretty primitive matching of URLs. Sean Rafael Souza wrote: I am using the navigation radius tag for my menu, and today I noticed a little bug... My snippet is like this: I noticed that, as the "rafael" is in "rafaels page" string, when the user is in "rafaels pages", the two items have the "selected" class! I had searched a bit but I couldn't find where I fix it. Thanks, Rafael Souza ___ 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 ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Navigation
Rafael, Try adding slashes on the ends of your URLs; and yes, has pretty primitive matching of URLs. Sean Rafael Souza wrote: I am using the navigation radius tag for my menu, and today I noticed a little bug... My snippet is like this: I noticed that, as the "rafael" is in "rafaels page" string, when the user is in "rafaels pages", the two items have the "selected" class! I had searched a bit but I couldn't find where I fix it. Thanks, Rafael Souza ___ 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] Navigation Menu with Sub Nav
You can try this snippet: With some css this will generate a good navigation menu. Rafael Souza On Thu, May 14, 2009 at 2:21 AM, Mohit Sindhwani wrote: > Christian Nikolajsen wrote: > >> Aha! Found the culprit, you were right it is navigation_tags causing my >> grief. >> Thanks for the help. >> >> /Christian >> > Glad to know! Now, it's time for someone to add this to the wiki :P *hint > hint* > > Cheers, > Mohit. > 5/14/2009 | 1:21 PM. > > > ___ > 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] Navigation Menu with Sub Nav
Christian Nikolajsen wrote: Aha! Found the culprit, you were right it is navigation_tags causing my grief. Thanks for the help. /Christian Glad to know! Now, it's time for someone to add this to the wiki :P *hint hint* Cheers, Mohit. 5/14/2009 | 1:21 PM. ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Navigation Menu with Sub Nav
Aha! Found the culprit, you were right it is navigation_tags causing my grief.Thanks for the help. /Christian 2009/5/14 Mohit Sindhwani > Christian Nikolajsen wrote: > >> Hi Mohit, >> >> A thought occured to me and I tried your code on a clean radiant install >> and it works perfectly. Both yours and Dans code example. >> Maybe some extension I have installed is causing the trouble? >> These are the extenstions I have installed: >> copy_move >> mailer >> settings >> dashboard >> navigation_tags >> sns >> drag_order >> news >> user_home >> help >> paperclipped >> wym_editor_filter >> > I can tell you that copy_move and settings definitely seem to work with it > because I have those installed. Could it be that navigation_tags causes > some problem? I'm really not sure what could cause the trouble because my > code uses built-in Radiant tags so technically that should work in all cases > :P > > Cheers, > Mohit. > 5/14/2009 | 12:59 PM. > > -- Venlig hilsen / Best Regards Christian Nikolajsen Tech Trooper of CreatingSite e-Commerce Mobile: +45 30624263 Mail: christ...@nikolajsen.net ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Navigation Menu with Sub Nav
Christian Nikolajsen wrote: Hi Mohit, A thought occured to me and I tried your code on a clean radiant install and it works perfectly. Both yours and Dans code example. Maybe some extension I have installed is causing the trouble? These are the extenstions I have installed: copy_move mailer settings dashboard navigation_tags sns drag_order news user_home help paperclipped wym_editor_filter I can tell you that copy_move and settings definitely seem to work with it because I have those installed. Could it be that navigation_tags causes some problem? I'm really not sure what could cause the trouble because my code uses built-in Radiant tags so technically that should work in all cases :P Cheers, Mohit. 5/14/2009 | 12:59 PM. ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Navigation Menu with Sub Nav
Hi Mohit, A thought occured to me and I tried your code on a clean radiant install and it works perfectly. Both yours and Dans code example. Maybe some extension I have installed is causing the trouble? These are the extenstions I have installed: copy_move mailer settings dashboard navigation_tags sns drag_order news user_home help paperclipped wym_editor_filter /Christian 2009/5/14 Mohit Sindhwani > Christian Nikolajsen wrote: > >> Hi Mohit sorry I never got back to you on your example. I tried it out and >> it's been causing problems for me and I'm getting the same problems with the >> example from Dan. >> >> When I try your examaples I get the following error message: >> >> >> NoMethodError in SiteController#show_page >> >> You have a nil object when you didn't expect it! >> The error occurred while evaluating nil.url >> Any thoughts on this would be appreciated (and again my apologies to Mohit >> for not answering him on his last post :) >> > Hi Christian > > It seems to be that one of the finds is failing or something. Could you > post the exact snippet you are using? > > Cheers, > Mohit. > 5/14/2009 | 11:37 AM. > > -- Venlig hilsen / Best Regards Christian Nikolajsen Tech Trooper of CreatingSite e-Commerce Mobile: +45 30624263 Mail: christ...@nikolajsen.net ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Navigation Menu with Sub Nav
Christian Nikolajsen wrote: Hi Mohit sorry I never got back to you on your example. I tried it out and it's been causing problems for me and I'm getting the same problems with the example from Dan. When I try your examaples I get the following error message: NoMethodError in SiteController#show_page You have a nil object when you didn't expect it! The error occurred while evaluating nil.url Any thoughts on this would be appreciated (and again my apologies to Mohit for not answering him on his last post :) Hi Christian It seems to be that one of the finds is failing or something. Could you post the exact snippet you are using? Cheers, Mohit. 5/14/2009 | 11:37 AM. ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Navigation Menu with Sub Nav
Thats weird, sorry I don't think I will be able to help you that much. I just started using Radiant this week, so I'm not really all that hip to how things work yet. I never got an error like that when setting up the navigation. I hope someone else can help you out. On Wed, May 13, 2009 at 2:27 PM, Christian Nikolajsen < christ...@nikolajsen.net> wrote: > Hi Mohit sorry I never got back to you on your example. I tried it out and > it's been causing problems for me and I'm getting the same problems with > the > example from Dan. > When I try your examaples I get the following error message: > NoMethodError in SiteController#show_page > > You have a nil object when you didn't expect it! > The error occurred while evaluating nil.url > > Any thoughts on this would be appreciated (and again my apologies to > Mohit for not answering him on his last post :) > > Regards, > > Christian > > > 2009/5/13 Mohit Sindhwani > > > Dan Shields wrote: > > > >> For other noobs like me that are looking at how to create a navigation > >> menu > >> with sub nav, here is an example I created below. I couldn't get > >> r:navigation to do it or the navigation_tags extension to work properly. > >> > >> I'm sure there is a better way to do this so please offer your > suggestions > >> on how to do this if you know of a better way. > >> > >> > > *snip* > > > > I had posted this to the list a few days ago: > > > > I tried out what I thought you meant, so I prototyped it out in one of my > > experimental sites. Would you see the 2 pictures at: > > http://www.onghu.com/radiant_summer/captures/ - Is this what you want? > > > > The way I did it was using the following code in a snippet - this snippet > > is included in one of the layouts. > > > > > > > > * ^ > > > > > > > > > > > > > > > > * > > > > > > > > > > (Actually, this code is slightly different from the one that I used to > > produce the screen shots. In the first block, I modified the line: > > * ^ > > > > to include the part for "^" to show the main block that is selected. > > > > Let me know if this helps. > > > > Cheers, > > Mohit. > > 5/13/2009 | 11:26 PM. > > > > > > ___ > > Radiant mailing list > > Post: Radiant@radiantcms.org > > Search: http://radiantcms.org/mailing-list/search/ > > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > > > > > > -- > Venlig hilsen / Best Regards > > Christian Nikolajsen > Tech Trooper of CreatingSite e-Commerce > > Mobile: +45 30624263 > Mail: christ...@nikolajsen.net > ___ > 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] Navigation Menu with Sub Nav
Hi Mohit sorry I never got back to you on your example. I tried it out and it's been causing problems for me and I'm getting the same problems with the example from Dan. When I try your examaples I get the following error message: NoMethodError in SiteController#show_page You have a nil object when you didn't expect it! The error occurred while evaluating nil.url Any thoughts on this would be appreciated (and again my apologies to Mohit for not answering him on his last post :) Regards, Christian 2009/5/13 Mohit Sindhwani > Dan Shields wrote: > >> For other noobs like me that are looking at how to create a navigation >> menu >> with sub nav, here is an example I created below. I couldn't get >> r:navigation to do it or the navigation_tags extension to work properly. >> >> I'm sure there is a better way to do this so please offer your suggestions >> on how to do this if you know of a better way. >> >> > *snip* > > I had posted this to the list a few days ago: > > I tried out what I thought you meant, so I prototyped it out in one of my > experimental sites. Would you see the 2 pictures at: > http://www.onghu.com/radiant_summer/captures/ - Is this what you want? > > The way I did it was using the following code in a snippet - this snippet > is included in one of the layouts. > > > > * ^ > > > > > > > > * > > > > > (Actually, this code is slightly different from the one that I used to > produce the screen shots. In the first block, I modified the line: > * ^ > > to include the part for "^" to show the main block that is selected. > > Let me know if this helps. > > Cheers, > Mohit. > 5/13/2009 | 11:26 PM. > > > ___ > Radiant mailing list > Post: Radiant@radiantcms.org > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > -- Venlig hilsen / Best Regards Christian Nikolajsen Tech Trooper of CreatingSite e-Commerce Mobile: +45 30624263 Mail: christ...@nikolajsen.net ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Navigation Menu with Sub Nav
Dan Shields wrote: For other noobs like me that are looking at how to create a navigation menu with sub nav, here is an example I created below. I couldn't get r:navigation to do it or the navigation_tags extension to work properly. I'm sure there is a better way to do this so please offer your suggestions on how to do this if you know of a better way. *snip* I had posted this to the list a few days ago: I tried out what I thought you meant, so I prototyped it out in one of my experimental sites. Would you see the 2 pictures at: http://www.onghu.com/radiant_summer/captures/ - Is this what you want? The way I did it was using the following code in a snippet - this snippet is included in one of the layouts. * ^ * (Actually, this code is slightly different from the one that I used to produce the screen shots. In the first block, I modified the line: * ^ to include the part for "^" to show the main block that is selected. Let me know if this helps. Cheers, Mohit. 5/13/2009 | 11:26 PM. ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] navigation tag question
Hi! I just remembered seeing this some months ago, now that I needed something like it. Great snippet, thanks! ;) Just one small comment... if someone wants to use this for CSS- dropdowns (like me), just remove the if_ancestor_or_self-tags. cheers, Simon On Oct 17, 2008, at 18:44 , Manuel Meurer wrote: I found the r:navigation tag become too limited to do that kind of stuff. See below for an example of how to do your navigation "by hand". activeinactive">Home class="activer:if_ancestor_or_self>inactiver:unless_ancestor_or_self>"> class="activeinactiver:unless_self>"> On Thu, Oct 16, 2008 at 9:56 PM, Joe Van Dyk wrote: In the below case, I would want the About link to be highlighted, since that's the closest match to the current page. Is there a good way to do that? Joe On Thu, Oct 16, 2008 at 12:39 PM, Sean Cribbs wrote: Yes. Use if you want exact matches. However, often I just break out the navigation special cases (Home is a typical one). Sean Joe Van Dyk wrote: Say I'm on the page /about/page. Won't both the Home and the About links have the 'selected' class specified? Since /about/page is a child of both those pages? Joe ___ 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 ___ 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] navigation and subnavigation
Joe Van Dyk said the following on 11/21/2008 08:07 PM: > Hi, > > Any ideas on how I could automatically create this sort of navigation? > > http://img.skitch.com/20081122-j1ew9ww9xxprntjnwbck1mpk93.jpg Start with http://github.com/derencius/navigation_tags/tree/master and massage with suitable CSS. -- The chief forms of beauty are order and symmetry and definiteness, which the mathematical sciences demonstrate in a special degree. - Aristotle (384-322 B.C.), Metaphysics ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] navigation and subnavigation
I have done something similar using nested children tags. It is a tad complicated because I am using prototype to make the menu expandable etc. I'll put up the radius code tonight. (2pm here at the moment so it about 7 hours) 引用 Joe Van Dyk <[EMAIL PROTECTED]>: Hi, Any ideas on how I could automatically create this sort of navigation? http://img.skitch.com/20081122-j1ew9ww9xxprntjnwbck1mpk93.jpg The navigation tag wouldn't support that, right? ___ 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] navigation and subnavigation
Joe, Here is what I use. I'm not sure if its what others use but I like it. It uses two snippets, one of which calls itself recursively: nav (use this in your layout): nav_part: This will create a hierarchical of the sort you're looking for, although it will create it as deep as your your pages... you may need to find a way to restrict things. I ran into two problems off the bat, mostly because its rather indiscriminate (or rather it was). The first problem I had was that I was getting links to my RSS page, which was not what I wanted. So I added a part to the page called no_nav. Not entirely clear but any page that has that part will not be in the navigation. The second was with my news section. This sort of navigation doesn't work well. Instead of trying to figure out how to break the navigation into sections I decided not to put the children of the news page in the navigation. I achieve this by putting a part on the news page called "no_children". If you want to only go to n layers deep, you would need to modify this somewhat, but I think you get the general idea. I'll leave the styling to you. On 21-Nov-08, at 5:07 PM, Joe Van Dyk wrote: Hi, Any ideas on how I could automatically create this sort of navigation? http://img.skitch.com/20081122-j1ew9ww9xxprntjnwbck1mpk93.jpg The navigation tag wouldn't support that, right? ___ 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] navigation tag question
Sure. Have a look at standard_tags.rb #667 and hack away. Better yet, create a better_navigation extension and publish it on Github so everybody else can use it as well. Manuel On Fri, Oct 17, 2008 at 6:58 PM, Joe Van Dyk <[EMAIL PROTECTED]> wrote: > Wow -- that's craziness. Wonder if it would be possible or advisable > to modify the navigation tag to be smarter as to what it highlights as > being the active link? > > On Fri, Oct 17, 2008 at 8:44 AM, Manuel Meurer <[EMAIL PROTECTED]> wrote: >> I found the r:navigation tag become too limited to do that kind of stuff. >> See below for an example of how to do your navigation "by hand". >> >> >> >>active> matches="^/$">inactive">Home >> >> >>> class="activeinactive"> >> >> >> >> >> >> > class="activeinactive"> >> >> >> >> >> >> >> >> >> >> >> On Thu, Oct 16, 2008 at 9:56 PM, Joe Van Dyk <[EMAIL PROTECTED]> wrote: >>> In the below case, I would want the About link to be highlighted, >>> since that's the closest match to the current page. Is there a good >>> way to do that? >>> >>> Joe >>> >>> On Thu, Oct 16, 2008 at 12:39 PM, Sean Cribbs <[EMAIL PROTECTED]> wrote: Yes. Use if you want exact matches. However, often I just break out the navigation special cases (Home is a typical one). Sean Joe Van Dyk wrote: > > > > > /> > > > > Say I'm on the page /about/page. Won't both the Home and the About > links have the 'selected' class specified? Since /about/page is a > child of both those pages? > > Joe > ___ > 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 >>> >> ___ >> 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] navigation tag question
Wow -- that's craziness. Wonder if it would be possible or advisable to modify the navigation tag to be smarter as to what it highlights as being the active link? On Fri, Oct 17, 2008 at 8:44 AM, Manuel Meurer <[EMAIL PROTECTED]> wrote: > I found the r:navigation tag become too limited to do that kind of stuff. > See below for an example of how to do your navigation "by hand". > > > >active matches="^/$">inactive">Home > > > class="activeinactive"> > > > > > > class="activeinactive"> > > > > > > > > > > > On Thu, Oct 16, 2008 at 9:56 PM, Joe Van Dyk <[EMAIL PROTECTED]> wrote: >> In the below case, I would want the About link to be highlighted, >> since that's the closest match to the current page. Is there a good >> way to do that? >> >> Joe >> >> On Thu, Oct 16, 2008 at 12:39 PM, Sean Cribbs <[EMAIL PROTECTED]> wrote: >>> Yes. Use if you want exact matches. However, often I just break >>> out the navigation special cases (Home is a typical one). >>> >>> Sean >>> >>> Joe Van Dyk wrote: >>> /> Say I'm on the page /about/page. Won't both the Home and the About links have the 'selected' class specified? Since /about/page is a child of both those pages? Joe ___ 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 >> > ___ > 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] navigation tag question
I found the r:navigation tag become too limited to do that kind of stuff. See below for an example of how to do your navigation "by hand". activeinactive">Home On Thu, Oct 16, 2008 at 9:56 PM, Joe Van Dyk <[EMAIL PROTECTED]> wrote: > In the below case, I would want the About link to be highlighted, > since that's the closest match to the current page. Is there a good > way to do that? > > Joe > > On Thu, Oct 16, 2008 at 12:39 PM, Sean Cribbs <[EMAIL PROTECTED]> wrote: >> Yes. Use if you want exact matches. However, often I just break >> out the navigation special cases (Home is a typical one). >> >> Sean >> >> Joe Van Dyk wrote: >>> >>> >>> >>> >>> >> /> >>> >>> >>> >>> Say I'm on the page /about/page. Won't both the Home and the About >>> links have the 'selected' class specified? Since /about/page is a >>> child of both those pages? >>> >>> Joe >>> ___ >>> 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 > ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] navigation tag question
In the below case, I would want the About link to be highlighted, since that's the closest match to the current page. Is there a good way to do that? Joe On Thu, Oct 16, 2008 at 12:39 PM, Sean Cribbs <[EMAIL PROTECTED]> wrote: > Yes. Use if you want exact matches. However, often I just break > out the navigation special cases (Home is a typical one). > > Sean > > Joe Van Dyk wrote: >> >> >> >> >> > /> >> >> >> >> Say I'm on the page /about/page. Won't both the Home and the About >> links have the 'selected' class specified? Since /about/page is a >> child of both those pages? >> >> Joe >> ___ >> 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] navigation tag question
Yes. Use if you want exact matches. However, often I just break out the navigation special cases (Home is a typical one). Sean Joe Van Dyk wrote: Say I'm on the page /about/page. Won't both the Home and the About links have the 'selected' class specified? Since /about/page is a child of both those pages? Joe ___ 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