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: Structure Hide from Nav option not working

Status Resolved
Add-on / Version Publisher Lite 2.6.1
Severity
EE Version 3.5.10

James Carter

Jul 24, 2017

Description:
I have a local install of an EE3 site that has Publisher installed. My navigation is no longer hiding entries that have “Hide from Nav” in Structure set to “Yes”. I have reviewed the documentation to determine if there is a setting I have not corrected or code I have not added. Since it is a local install I do not have the ability to grant you access to the site. Below I have included the code for my navigation.

{exp:structure:nav channel:title="publisher" start_from="/" max_depth="3" show_depth="3" current_class="active" add_level_classes="yes" add_unique_ids="yes" include_ul="no"}

 

#1

BoldMinded (Brian)

Hi, James. Were you able to replicate this on demo.boldminded.com?

#2

Megan Miriello

I have to send page edits for approval. I set Cards to hide from nav and it is pending approval. As of right now it did not hide it from the navigation.

#3

BoldMinded (Brian)

Ok, I’ll take a look at this in the next few days.

#4

BoldMinded (Brian)

James, it looks like this was an issue of miscommunication with the previous Structure owners. They never actually added a hook that I had requested 2 years ago. I just spoke to Jace at EE Harbor and he added the hook and you should be able to download the latest version of Structure, and hopefully this will be fixed. If not just let me know.

#5

Megan Miriello

Unfortunately, this did not resolve the issue. I cleared the cache manager to ensure and no luck.

#6

BoldMinded (Brian)

Just for a sanity check, can you search the tab.structure.php file for “structure_modify_publish_tab_settings” and make sure the hook is present?

#7

Megan Miriello

Here is the code where I found the hook

if (ee()->extensions->active_hook('structure_modify_publish_tab_settings') === TRUE)
  {
   $settings = ee()->extensions->call('structure_modify_publish_tab_settings', $settings, $entry_id);
  }
#8

BoldMinded (Brian)

You need to re-save the entries you want to be hidden. They still contain old data, re-saving uses that hook to set the right data. I just confirmed this works locally.

#9

Megan Miriello

This resolves the issue. Thank you for your prompt help!

#10

BoldMinded (Brian)

Sweet 😊 You’re welcome.

Login to reply