I am creating a weblog page with Ditto. Not finished yet, but getting there. But when users click to add a resource (either in the frontend or in the manager), "show in menu" is checked by default. I do not want all blogposts to show up in the menu. Of course I can tell users they have to uncheck "show in menu" everytime they make a post, but they are bound to forget that and make a mess of things.
Can I change the default for this anywhere? It would be best if I could change it for blogposts only, but if "show in menu" can be unchecked for all items, that will work too.
Thank you KP! It took some fiddling around but it works beautifully now.
Thank you again KP52.
Used this solution and worked great!!
BUT, after users have created the resource and hit save, the browser just returns a white page with the text that was added in the content field, instead of returning the user back to the original entry page. I’m sure I have to add something in the chunk that ManagerManager calls OR maybe select something on the SystemEvents?, but not sure what.
This is what I put in the chunk:
//Changes show in menu default to not show
mm_default(’hide_menu’, ’ ’, ’ ’, ’19’);
// Always set the publish date on new documents to the current date and time
mm_default(’pub_date’);
:-\
I tried the proposed codes above, nothing worked. Any ideas what line to add to the ManagerManager to prevent the check in "Show in Menu" for new documents/resources? Thx (modx evo)