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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Themes /

Discuss SilverStripe Themes.

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

Trouble setting static publisher theme in combination with theme in backend


Go to End


1644 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?