We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Navigator module (navigation builder)

Development and Programming

Tannerhof - Naturhotel & Gesundheitsresort's avatar
Tannerhof - Naturhotel & Gesundheitsresort
26 posts
19 years ago
Tannerhof - Naturhotel & Gesundheitsresort's avatar Tannerhof - Naturhotel & Gesundheitsresort

Hi, this menu displays just fine using nested lists, but in the markup I’m getting a repetition problem if i do this:



in the nested UL every LI item gets enclosed in another UL like so:



placing the “if” inside the nested UL to prevent this doesn’t work. Any idea how i can get to repeat only the Li items within one nested UL?

Just trying to get that markup correct.

       
Cocoaholic's avatar
Cocoaholic
445 posts
19 years ago
Cocoaholic's avatar Cocoaholic

I think this is what you want:



This works by setting the last subitem’s properties to “last_sub” and MAIN items still have “main” as their properties.

       
Tannerhof - Naturhotel & Gesundheitsresort's avatar
Tannerhof - Naturhotel & Gesundheitsresort
26 posts
19 years ago
Tannerhof - Naturhotel & Gesundheitsresort's avatar Tannerhof - Naturhotel & Gesundheitsresort

Cocoaholic, as i’m testing different ways to do a well structured navigation i see much potential for navigator if it manages to integrate the functionality/scripting to support different types of nav/subnav, dropdowns, accordion… Thanks for helping. Silvia

       
Cocoaholic's avatar
Cocoaholic
445 posts
19 years ago
Cocoaholic's avatar Cocoaholic

I don’t think I will ever offer out of the box menu’s, just the valid markup to create them. You already have your harmonica working, you just need to add some nice AJAX fx 😉

The way you can choose a Parent Category in EE seems the way to go for this module, but I would also like to keep it flexible enough so people can create other types of menu’s besides nested lists.

Ideas on how to improve the module are always welcome of course.

Don’t have much time now but I will keep you posted.

       
melissajc's avatar
melissajc
86 posts
19 years ago
melissajc's avatar melissajc

thank you so much for creating this!!! excellent :cheese:

       
CPengwin's avatar
CPengwin
3 posts
19 years ago
CPengwin's avatar CPengwin

It would be useful to be able to generate URLS by specifying a WebLog, after which the navigator would insert the Weblog URL as specified in the preferences.

       
Cocoaholic's avatar
Cocoaholic
445 posts
19 years ago
Cocoaholic's avatar Cocoaholic

Hi CPengwin,

If I understand correctly, you would like to see another drop-down containing all Weblog names? Isn’t the Weblog URL “site_url / template_group / template” most of the time ? (ok, maybe without the / template)

Your request makes sense for people using different subdomains for weblogs, why would this be a useful feature to you?

       
CPengwin's avatar
CPengwin
3 posts
19 years ago
CPengwin's avatar CPengwin

Basically, I want to be able to set my weblog URL once and use it everywhere. So, if I only select an entry title it will direct me to the comment page for that entry, or if I select a weblog it will direct me to the weblog URL (all as specified in the path settings).

Its useful in development because things move around a bit… Say I have two weblogs, “television” and “movies”. I may start with both listed under www.website.com/content, but then I decide that my structure will be better if I split them to separate templates, www.website.com/movies and www.website.com/television, or if both weblogs use one template that outputs the relevant content based on URL segments… i.e. www.website.com/content/movies and www.website.com/content/television

If I make a change, it would be nice not to have to change each individual nav-entry, and instead be able to simply change the weblog url and everything else magically works.

       
Cocoaholic's avatar
Cocoaholic
445 posts
19 years ago
Cocoaholic's avatar Cocoaholic

Your example will only work if you set your Weblog URL to something like: “http://www.yoursite.com/site/comments/” or any other comment template, which sounds somewhat odd te me.

At the moment the URL’s created by the module start with the “URL to the root directory of your site” as specified in your “System Preferences” and any Template or Entry you choose gets added to that URL. An option to use the “Weblog URL” instead of the “root URL” could be a feature but it would only work when someone only selects an entry title…

Hmm, I’m not convinced yet.

       
CPengwin's avatar
CPengwin
3 posts
19 years ago
CPengwin's avatar CPengwin

That’s the idea… use the weblog comments url when someone selects an entry title… as well as providing a weblog dropdown that selects the default weblog url

       
Cocoaholic's avatar
Cocoaholic
445 posts
19 years ago
Cocoaholic's avatar Cocoaholic

Using the Comment Page URL as a default when selecting an entry would take away the flexibility of deciding in which template you want to show the entry. In EE Templates are not directly linked to Weblogs so I don’t think this is a good idea.

I might consider adding another drop-down to select the “Weblog URL” and “Comment Page URL” for each weblog, but i’m not sure its adds anything to just choosing a template_group/template though. You still need to choose from 2 drop-down menu’s:

Template + Entry Title or Path URL + Entry Title

       
Andru Edwards's avatar
Andru Edwards
330 posts
19 years ago
Andru Edwards's avatar Andru Edwards

Does this work for improved category handling? Let me give an example…

Go to one of our blogs, tvenvy.com. On the left, you will see our category navigation, and they are broken up into different sections. It is such a chore right now because for each section I have to have a show=”not #|#|#” so that it doesn’t display what is in the other sections. Really, it is a pain.

I would love to have a way to have EITHER multiple category groups used for the same weblog, or a way to make grouping categories a lot easier.

       
Jesse Bennett-Chamberlain's avatar
Jesse Bennett-Chamberlain
10 posts
19 years ago
Jesse Bennett-Chamberlain's avatar Jesse Bennett-Chamberlain

I’m not sure if I’m missing something… but how do you get extra segments to show up in the url? I’ve added text to the segment field, but it doesn’t change the url on the nav.

Thanks! Jesse

       
Cocoaholic's avatar
Cocoaholic
445 posts
19 years ago
Cocoaholic's avatar Cocoaholic

Hi Jesse,

There are two cases when URL segments are ignored.

1) If you select a category 2) when using the URL field

As far as I know adding segments after a category URL is not a valid combination, I could be wrong though…

The Custom URL field overrides all other fields including the URL segments (you can just add them to the Custom URL)

Cheers

       
Jesse Bennett-Chamberlain's avatar
Jesse Bennett-Chamberlain
10 posts
19 years ago
Jesse Bennett-Chamberlain's avatar Jesse Bennett-Chamberlain

Ah thanks… I am attempting to do a segment after a category. Not sure if it’s valid or not, but it works. Is this an easy thing to hack out? Would you be able to point me in the right direction?

Thanks! Jesse

       
1 2 3 4 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.