Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Themes /

Discuss SilverStripe Themes.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Trouble setting static publisher theme in combination with theme in backend


Reply


554 Views

Avatar
Bundschuh

Community Member, 10 Posts

21 March 2012 at 6:32am

For a project I have to themes, say "A" and "B". Both based on the shipped tutorial theme files.
In the cms backend I clicked on the page root node and chose "A" from the theme dropdown menu (available are "default", "A", "B").
Creating a new page and open the preview works fine. My self created theme "A" will be used.

Now I have a self implemented static publisher which submits my pages to a external source. In the config file I set the following:
staticPublisher::set_static_publisher_theme('B');
Unfortunately this won't work. The pages will always rendered with theme "A" and submitted.

Choosing "B" in backend works fine. I assume this means that the Themes working right.

Any ideas?