Jump to:

1384 Posts in 493 Topics by 522 members

Themes

SilverStripe Forums » Themes » Trouble setting static publisher theme in combination with theme in backend

Discuss SilverStripe Themes.

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

Page: 1
Go to End
Author Topic: 472 Views
  • Bundschuh
    Avatar
    Community Member
    10 Posts

    Trouble setting static publisher theme in combination with theme in backend Link to this post

    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?

    472 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.