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

CommentFileSizeAuthor
menulinks_and_freetagging.gif2.62 KBvenkat-rk

Comments

venkat-rk’s picture

Title: Category module: menu links published for unpublished nodes categorised through free tagging » Category_menu publishes menu links for free tagged unpublished nodes

changing title.

I have a vague recollection that a similar issue was raised earlier, but that had to with regular categories.

arda’s picture

Version: 4.7.x-1.x-dev » 5.x-1.x-dev
Component: Code » Category_menu
Status: Active » Needs work

i 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

JirkaRybka’s picture

Status: Needs work » Closed (fixed)

This 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.