21286 Posts in 5733 Topics by 2602 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 306 Views |
-
Static Publisher, way to do post-processing?

13 October 2011 at 4:46am Last edited: 13 October 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?
Thanks!
Wilson -
Re: Static Publisher, way to do post-processing?

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.
-
Re: Static Publisher, way to do post-processing?

13 October 2011 at 9:20am
Found this! You can set a different theme for static content.
StaticPublisher::set_static_publisher_theme('mytheme');
| 306 Views | ||
|
Page:
1
|
Go to Top |

