When I create a story node and tag them with free tagging, the menu links are created even though the nodes are unpublished. Clicking on the menu link doesn't actually show the unpublished node, which is good, but it would be better if category_menu didn't show those menu links at all until the node is actually published.
Screenshot attached. frugality and simple living were the free tags added
| Comment | File | Size | Author |
|---|---|---|---|
| menulinks_and_freetagging.gif | 2.62 KB | venkat-rk |
Comments
Comment #1
venkat-rk commentedchanging title.
I have a vague recollection that a similar issue was raised earlier, but that had to with regular categories.
Comment #2
arda commentedi have added this code
if ($node->status == 0) {$item['type'] = MENU_MODIFIED_BY_ADMIN;}
to line 547 just after $item['type'] = MENU_CUSTOM_ITEM | MENU_MODIFIED_BY_ADMIN;
this is at category_menu_save_item function at category_menu module.
This way as you save the category or the container the code will look at the "publish/unpublish" checkbox which is the status column in node table. You may change this code to fit your needs.
hope it helps
Comment #3
JirkaRybka commentedThis issue is 2 years old, and 4.7.x is now unsupported (5.x to some extent too). Since in 6.x this works well (got fixed obviously), closing this issue as obsolete.