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

Caleydon's avatar
Caleydon
17 posts
17 years ago
Caleydon's avatar Caleydon

First of all - Cocoaholic, it’s excellent module!!!

I’ve got a few ideas for improve module.

1. Regarding with a new Pages module in EE 1.6 it could have been useful add after Template, Category, Entry Title next dropdown - Pages URI.

2. Sometimes is useful something like hide any Item in the menu. For example: I need hide second menu Item because the concrete page is out of order right now. The item will be deleted. Then is hard to innovate him at the same position as before (second position in the menu) if I’m using orderby=”nav_id”.

In the end, I’m finding any solution for this: I need split menu Items from the menu Group to the 2 column. I don’t want to create Group for each column. Is there any other solution, how to display Items 1-5 in the first column and then 6-10 in the second?

Thank You

Edit: I’m just resolved problem how to split Items to the two column

First column:

<ul>
{exp:navigator group="2" orderby="nav_id" sort="asc"}
{if nav_id >= "17" AND nav_id <= "19"}
<li><a href="http://{nav_url}" title="{nav_description}">{nav_title}</a></li>
{/if}
{/exp:navigator}
</ul>

Second column:

<ul>
{exp:navigator group="2" orderby="nav_id" sort="asc"}
{if nav_id >= "20"}
<li><a href="http://{nav_url}" title="{nav_description}">{nav_title}</a></li>
{/if}
{/exp:navigator}
</ul>
       
nullbreached's avatar
nullbreached
116 posts
17 years ago
nullbreached's avatar nullbreached

Is there a reason that I would get an error message that says the Documentation wouldn’t work? Says that my root URL is incorrect, but I know it’s not. Any other place I could read up on this module? Thanks!

       
sm9's avatar
sm9
352 posts
17 years ago
sm9's avatar sm9

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

       
Beebs's avatar
Beebs
207 posts
17 years ago
Beebs's avatar Beebs

One of the best module for EE.

Beside smooth installation and great documentation, I still struggle to implement CSS for this module.

Does anyone have working example where I can study how to implement CSS for this module? What I need is simple - a “selected” button appear automatically according to the weblog.

Thanks for the module

       
Eric Barstad's avatar
Eric Barstad
198 posts
about 17 years ago
Eric Barstad's avatar Eric Barstad

I’m late to the party as usual…

This is a great module. Don’t suppose anyone figured out how/modified the module to clone groups?

       
Brian Litzinger's avatar
Brian Litzinger
693 posts
16 years ago
Brian Litzinger's avatar Brian Litzinger

Is there anyway to integrate parent/child relationships with this module? For instance on the add/edit page it would be cool if I could select a parent page for a new menu item, and when printing the menu onto the page it would then print it’s children in a ul/ol.

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

I’m just in the process of building a new site and am currently using the Navigator module - one small problem I just encountered is slightly bugging me:

I’m using the Pages module to create statis pages and custom URIs to reach those. Whenever I add an entry in the Navigator module, the url of the navigation item is the url_title specified in the entry, not the Pages URI. This makes the module unusable with the Pages module, a workaround is to specify the same url_title and Page URI, but this is not gonna work with the customer because of the workflow.

Any ideas, am I missing something? Is this maybe planned for the future or am I invited to hack it in myself? 😊

Any other ideas how I could manage my Pages and Navigation items?

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

peschehimself,

Of course you are welcome to hack it in yourself 😉 I will look into adding the pages URI’s to the module, it’s about time I added those.

I’ll let you know when and how.

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

Hi cocoaholic

Would be perfect yes, that’s the only thing (except maybe for hierarchies, but that’s not crucial) I’m missing in this module right now and without this, I might not be able to use it.

       
Brian Litzinger's avatar
Brian Litzinger
693 posts
16 years ago
Brian Litzinger's avatar Brian Litzinger

Cocoaholic, I dug into the source code and saw what looks like work in progress for parent/child relationships… is this feature working in 1.1 if I uncomment it, or is there still more to do? And if so… will it be in a 1.2 release?

Thanks for your hard work. This is a sweet plugin as is… just needs a few tweaks 😉

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

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

       
Brian Litzinger's avatar
Brian Litzinger
693 posts
16 years ago
Brian Litzinger's avatar Brian Litzinger

Bug Fix:

The count conditional doesn’t work unless you add the following inside the foreach ($TMPL->var_single as $key) loop on line 306 of mod.navigator.php

In my case I added it to line 487 at the end of the loop

case 'count':
     // count
     $tagdata = $TMPL->swap_var_single($key, $cond['count'], $tagdata);
     break;
       
nullbreached's avatar
nullbreached
116 posts
16 years ago
nullbreached's avatar nullbreached

Has anyone come up with a way to create a “tabbed” with a “sub-tabbed” menu using this module? I can’t seem to figure the sub tabbed menu out. the sub tabbed would be static and not a hovering one like described.

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

Also if you want to add a {total} variable in addition to the count (don’t forget bug fix mentioned by tilzinger), add this

$total = sizeof($query->result);

somewhere around line 233, just after where the variable $i = 1 gets assigned, and also

// add dreamscape
$cond['count'] = $i;
$cond['total'] = $total;

the $cont[‘total’] after $cond[‘count’] in the for each loop that follows and also, exactly the same way as for the count bug fix

case 'total':
    // total
    $tagdata = $TMPL->swap_var_single($key, $cond['total'], $tagdata);
    break;

somewhere around 487, in the for loop where variables are being replaced.

This is crucial when you want to tag first / last elements of a navigation list.

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

edited

       
First 3 4 5 6 7 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.