Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: NavEE selected class issue

Status Resolved
Add-on / Version Publisher
Severity Critical
EE Version 30

Aaron @ Emagine

Jul 24, 2013

I have the following: http://www.domain/de/produkter, etc for all languages, where my language code is inserted but ‘hidden’ from the segment stack in EE. But I have found that using the navee extension for a manual set of links, the selected class simply wont fire when clicked in, and I think it might be the language code causing this? This is my code:

{exp:navee:custom nav_title="main_nav" wrap_type="ul" selected_class="active" display_all_children_of_selected="true" parent_selected_class="active" selected_class_on_parents="true"}
      <li class="{class}"><a href="{link}">{text}</a>{kids}</li>
{/exp:navee:custom}

I can manually set classes in the navee area, which makes my sub-navs all fire correctly, but this is hard coded, and it would be handy to have it work without this.

My template group/template for this is: products/index
The page link I have in navee i have tried: /products, /en/products, http://www.domain/en/products/

But nothing seems to trigger this. Not too sure if the extension is causing this, or navee itself. I have the latest builds of both, so thought I would start here first to see if it was something from this end.

Cheers.

#1

BoldMinded (Brian)

Aaron, I took a look at it this morning and it appears as if I need to get them to add another hook to their module, or I might be able to patch their module directly and send it to them. I’ll get back to you on this later tonight or tomorrow.

#2

BoldMinded (Brian)

Aaron, I emailed a new build. You will need to patch NavEE though. In mod.navee.php you’ll need to replace the following function (or just add the hook call) https://gist.github.com/litzinger/6076121

I’ll mention this to Michael to see if he’ll add this into NavEE officially.

#3

BoldMinded (Brian)

You’ll also need to grab the latest version of the extension: https://github.com/litzinger/publisher_navee/blob/master/third_party/publisher_navee/ext.publisher_navee.php

#4

Aaron @ Emagine

Hi Brian,

I have the latest updates and that version installed and it is throwing some errors in the CP files.

A PHP Error was encountered

Severity: Notice

Message: Undefined property: Addons_modules::$pubilsher_category

Filename: publisher/mcp.publisher.php

Line Number: 802


Fatal error: Call to a member function get_first_group() on a non-object in /system/expressionengine/third_party/publisher/mcp.publisher.php on line 802
#5

BoldMinded (Brian)

Looks like a typo. Go to line 802 and change it to publisher_category->get_first_group()

#6

Aaron @ Emagine

That sorted it, thanks dude

Login to reply