Remove 'New Page' and 'New sub page' from wizard

21 views
Skip to first unread message

ViggieSmalls

unread,
Nov 7, 2018, 8:31:43 AM11/7/18
to django CMS developers
Hi,

I would like to unregister the 'New Page' and 'New Sub Page' from my content creation wizards
I know I can do:

from cms.wizards.wizard_pool import wizard_pool
from cms.cms_wizards import cms_page_wizard, cms_subpage_wizard

wizard_pool.unregister(cms_page_wizard)
wizard_pool.unregister(cms_subpage_wizard)

This works when I put it in a cms_wizards.py file inside one of my applications.

But how do I do this if I don't want to put this code inside my application?
Which file can I put the code in, to be executed?

Thank you in advance!


Reply all
Reply to author
Forward
0 new messages