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 not working when editing entries

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

James Carter

Aug 16, 2017

Description:
Hide from Nav is not working properly. Any entries that are changed from “No” to “Yes” are not hidden from the navigation on the front-end but show “(hidden)” in CP Structure tree. I have installed the latest version on Structure and Publisher to ensure this was not the issue.

Detailed steps to reproduce the issue:
1. Editor edits page entry to selects “Yes” for “Hide from Nav” field saves draft, marks “Send for approval”, and saves entry.
2. When publisher opens entry “Hide from Nav” is still set to “No”
3. Publisher changes to “Yes” and saves. Entry shows as hidden in structure tree but on the front-end of the site it still appears in navigation.

#1

BoldMinded (Brian)

Grab the latest version of Structure, and the Publisher build in my next comment, which should fix the issue.

#2

BoldMinded (Brian)

Comment has been marked private.

#3

Megan Miriello

Thank you for responding so quickly, this fixes the issue.

The only issue I’m having now is the Structure Template dropdown is not saving the data anymore. I’m not sure if this is a Publisher issue but it wasn’t happening until I installed the files you sent.

#4

BoldMinded (Brian)

By not saving the data do you mean the value you choose is not what displays when you reload the entry? Add this to a template to list all the site page data that Publisher has. It should show the template ID, which you can inspect the drop down menu in the tab to see if its saving the correct template.

{exp:publisher:site_pages_debug}
#5

Megan Miriello

I’m unable to replicate the issue now, so it may have been a fluke. My apologies. Thank you for your prompt help today.

#6

BoldMinded (Brian)

No worries. If it comes up again just re-open this ticket.

#7

Megan Miriello

Ok, I was able to recreate. The issue is the entry is not maintaining the template it was saved with originally. This requires the user to change it to the desired template which we hide to prevent instances like this. I can’t get the troubleshoot tag to produce anything because I am taken to the 404 template. This is a live site so I’m limited in what I can do.

#8

BoldMinded (Brian)

Don’t put that debug tag in the page you’re trying to view. Create a new template, like site/debug.html, and put it in there. That tag lists the entire site pages tree.

#9

Megan Miriello

Got it thank you this helps. We have fixed all the pages to have the correct templates now, however, when an editor saves the entry it is not retaining the structure template it had prior to editing the entry.

#10

BoldMinded (Brian)

You say you’re hiding the Structure tab? Does it work when its visible? Do you have a dev environment I can login to and take a look at?

#11

Megan Miriello

Comment has been marked private.

#12

BoldMinded (Brian)

Publisher doesn’t care about what group a user is in when dealing with saving the actual content, it only uses the member groups to prevent someone from saving it as a published status. Meaning the value of the Structure tab fields don’t care about the member group. I feel like something else is amiss here if its behavior changes depending on the member group.

#13

Megan Miriello

Do you have any suggestions for what I can look into? The client cannot add pages to their site currently as they do not understand the template structure.

#14

BoldMinded (Brian)

Can you provide an editor login for me so I can take a look?

#15

Megan Miriello

Comment has been marked private.

#16

BoldMinded (Brian)

I’m not really sure I understand the issue. Can you create a video or something walking me through it?

#17

AdriaanSnoeren.com

I’m guessing we’re walking into the same issue here. There seems to be a problem with the saved template id in exp_structure_listings and exp_publisher_site_pages. The template ID’s are not always matching and that’s very confusing because sometimes the website opens the wrong template and shows the wrong template in the Structure tab.

#18

BoldMinded (Brian)

Adriaan, are you using the latest versions of both addons?

#19

BoldMinded (Brian)

I’m still unable to replicate this. Running Publisher 2.6.3 and Structure 4.1.18. I can save different template ids for an entry for each translation and status, and when I check the site_pages array on the front-end the same template is used for that entry.

Have you clicked the run updates button for Publisher and Structure? Have you tried replicating this on demo.boldminded.com?

#20

Megan Miriello

We discovered this was a bug with Structure that has been resolved since by EEHarbor.

#21

BoldMinded (Brian)

Thanks for the update. I assume the 4.1.18 release is what fixed it?

#22

Megan Miriello

It was the 4.2.0 release that fixed the problem.

Login to reply