Rendering a front end page from the control panel

daviesgeek - 8 months ago

I have a page that, on save, I'd like to render and spit out to a static file, using the front end (not the control panel) theme. How would I go about doing this?

Answer

- 8 months ago

I think the easiest way would be using an event or observer to make a get request to the front end and capture the page content that way. Be it the content only or full response text.

ryanthompson - 8 months ago

I think the easiest way would be using an event or observer to make a get request to the front end and capture the page content that way. Be it the content only or full response text.

daviesgeek - 8 months ago

Okay I was wondering if that might be the best idea. It's a tiny bit hacky, but I think it should be okay :)