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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Static Publisher, way to do post-processing?

Go to End

3 Posts   820 Views


Community Member, 63 Posts

13 October 2011 at 4:46am

Edited: 13/10/2011 4:46am

Hi everyone,

We're currently using static publisher to 'spit out' content that's used in our eCommerce system.

I'd like to be able to parse the output to swap out image and resource links so that they point to our CDN but still keep the ability for the content editors to preview the content locally.

Anyone know a way to 'listen' for the publish event and then parse the output for just the static content?



Community Member, 288 Posts

13 October 2011 at 5:09am

There are some actions you can look at in SiteTreeDecorator that run when a page is published/unpublished. I don't know if/how they relate to the static publisher though. I think the best solution would probably be to hook into the static publisher if possible and make the changes when the html is created instead of making the changes when the content is written to the database.


Community Member, 63 Posts

13 October 2011 at 9:20am

Found this! You can set a different theme for static content.