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

Erskine's avatar
Erskine
46 posts
16 years ago
Erskine's avatar Erskine

edited

       
Jamie Pittock's avatar
Jamie Pittock
108 posts
16 years ago
Jamie Pittock's avatar Jamie Pittock

Was there ever a solution found to using this along with the Pages module?

I could use some feedback on adding the Pages URI’s. The module should remain usable for clients so I’m trying to implement it as simple as possible. I see a few options: 1 - add another select box containing all Pages as listed on the Pages Homepage. 2 - add a checkbox labeled something like “Use Pages URI if available”, next to the “entry Title” select box. The second option allows you to filter entry titles as usual which is nice, but I’m not sure clients will understand the whole ‘Pages URI’ thing. Another option could be to have the user a choose what type of URL you want to add, which will take them to the next page which is optimized for that type of URL. for example: - Add Custom URL - Add Pages URL - Build URL from templates etc. Please let me know what you think would be a good way to implement this. TIA, Elwin

Personally I think option #2 would be enough. If they’ve added a Page URI to the page entry then they’re understand what it means. As long as you use the same terminology as on the publish page.

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

I added a quick “Use Pages URI” checkbox.

You can download version 1.2 at the start of this thread.

       
Gabriel's avatar
Gabriel
130 posts
16 years ago
Gabriel's avatar Gabriel

Hi. Is there any variable to show navigator group title in the navigator template?

I’m using following query but built-in variable could have been better:

{exp:query sql="SELECT group_name FROM exp_navigator_groups WHERE group_id = '1'"}
{group_name}
{/exp:query}

Thanks.

       
gridonic's avatar
gridonic
231 posts
16 years ago
gridonic's avatar gridonic

I just noticed that when you chose to link to categories, the actual category name is being used for the link. This should probably be replaced with the url_title of a category as it’s safer to use than the name.

We’ll look into this shortly, but I suppose it’s a small thing Cocoaholic?

Or is this behaviour intended?

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

Good catch!

I’ll update the module later today.

       
gridonic's avatar
gridonic
231 posts
16 years ago
gridonic's avatar gridonic

Wow, that was fast.

Ok, let me know if you were successful, otherwise I can have a look at the code myself and give you a patch, but I suppose you’ll have it done faster.

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

A day later than planned, but version 1.2.1 now uses the catagories’ url_title instead of the category name for URL’s.

       
gridonic's avatar
gridonic
231 posts
16 years ago
gridonic's avatar gridonic

Thanks cocoaholic!

We’ll be posting a quick tutorial on how to make navigations with more than one level with your module soon.

       
Eric Barstad's avatar
Eric Barstad
198 posts
16 years ago
Eric Barstad's avatar Eric Barstad
Thanks cocoaholic! We’ll be posting a quick tutorial on how to make navigations with more than one level with your module soon.

That would be awesome. I’m always looking for a way to let clients control navigation without having to edit templates.

       
Gabriel's avatar
Gabriel
130 posts
16 years ago
Gabriel's avatar Gabriel
Hi there, I’m trying to use this module for a navigation menu where the active menu has a class=on. I find method of highlighting the current page to be more sustainable than the CSS method. But for some reason, I can’t seem to get this to work with this module - I’d appreciate if someone could take a look at my code and let me know if I’m doing something wrong, or whether I’m just trying to do something that this module can’t do? Note that I have entered the segment_1 value in the Description box, so for example, for the About page, the description is about, and segment_1 is about. Even though both values match (and I have verified this by ‘echo’ing’ the values in a test page), the ‘class=”on” code just won’t appear.
<ul>
{exp:navigator group="1"}
<li><a href="http://{nav_url}" class="on">{nav_title}</a></li>
{/exp:navigator}
</ul>
Thanks, Ste

Hi Ste,

try to exchange nav_description with segment_1

It works for me 😉

       
Gabriel's avatar
Gabriel
130 posts
16 years ago
Gabriel's avatar Gabriel

@Cocoaholic: thanks for update 😉

       
lukemcr's avatar
lukemcr
154 posts
16 years ago
lukemcr's avatar lukemcr
Thanks cocoaholic! We’ll be posting a quick tutorial on how to make navigations with more than one level with your module soon.

Any progress? I’m going to use this module soon, and it’d be nice to see what other people have done with it before I start coding. 😊

       
Ryan M.'s avatar
Ryan M.
1,511 posts
16 years ago
Ryan M.'s avatar Ryan M.

I first used this way back in 2006 on my first EE site. Sort of cool to see that it has been improved and worked on since. Nice work, Cocoaholic!

       
Matthew Pennell's avatar
Matthew Pennell
221 posts
16 years ago
Matthew Pennell's avatar Matthew Pennell

And thanks to mdesign for tweeting about it yesterday - just after I had a client ask me “can you add a way for us to manage the navigation bar?” 😊

       
First 4 5 6 7 8

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.