Hello,
in my menu snippet I’m selecting resources that are published and not hidden to display only those in the menu:
$resource = $modx->getObject(
'modResource',
array(
'id' => $menuItemId,
'published' => true,
'hidemenu' => false
)
);
This works perfectly for documents, but there’s also a weblink that points to a URL (
http://forum.mydomain.tld/). I can unpublish it and "hide it from menus", but it nevertheless shows up in the menu. In the database (table <prefix>_site_content) the values for these settings are saved correctly: published=0 and hidemenu=1.
Is this a feature I don’t understand or just a bug?
Cheers,
Jan
This message has been ROT-13 encrypted twice for higher security.
-
☆ A M B ☆
- 427 Posts
Attempt to clear the site cache...
It will sit there.
Quote from: wshawn at Mar 02, 2010, 08:33 PM
Attempt to clear the site cache...
It will sit there.
You’re right, thank you very much!
I didn’t notice that there isn’t an "empty cache" option - there is one for documents, but not for weblinks. Why?
Cheers,
Jan
This message has been ROT-13 encrypted twice for higher security.
Quote from: splittingred at Mar 02, 2010, 11:55 PM
That would definitely be a bug. Can you file it here? http://bugs.modxcms.com/
Done.
Cheers,
Jan
This message has been ROT-13 encrypted twice for higher security.