Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Plone custom viewlets.xml not being picked up

Quoting http://plone.org/documentation/kb/customizing-main-template-viewlets/tutorial-all-pages (about 1/4 of the page down)

If all you need is to reorder the viewlets in the Plone Default skin, you can simply copy the original viewlets.xml from CMFPlone/profiles/default/ into MyTheme/profiles/default/, and edit the copied file to make it reflect your needs.

When I do just that, I get no changes, not after reloading, not after a buildout, not anyhow. I did some slight manual changes to MyTheme/browser/templates/main_template.pt, which are picked up, so it is not so, that my product is ignored at all. So far I did not touch any essential code there, so this cannot be the reason.

This is for a plone 3.3.5 install. Anybody could give me clue here? Any infos needed, I am standing by :)

like image 956
Jan Avatar asked May 30 '11 15:05

Jan


1 Answers

GenericSetup profiles need to be explicitly loaded, they are not loaded on start-up.

You can do this by either reinstalling your package in the QuickInstaller. Alternatively, you can just re-import just viewlets.xml via the setup tool. You'll find that tool in the ZMI (look for the portal_setup tool):

portal_setup

Once there you select the Import tab:

Import tab on the portal_setup tool

You'll then have to find your package profile in the drop-down list:

Select Profile or Snapshot

The tab will automatically reload once you make your choice. Scroll down to the "Viewlet Settings" step and check it's checkbox:

Viewlet settings step

Then finally, uncheck the "Include dependencies?" checkbox at the bottom and click the "Import selected steps" button:

Import selected steps button

like image 144
Martijn Pieters Avatar answered Oct 31 '22 03:10

Martijn Pieters