Barry, I wrote a quick-and-dirty one as a proof-of-concept for the facets branch back in January. It's not too hard, and I bet a lot of the code could be ported to 0.6.2. Basically it involves constructing a page and its parts in-memory and then calling the process method. Here's the code that gets mixed into the admin/page_controller: http://dev.radiantcms.org/radiant/browser/branches/facets/extensions/page_preview/lib/preview_controller_extensions.rb
On the client side, there's a link that serializes the form and submits it to this action in a new window. Sean Barry Hess wrote: > Another question for you... > > I'm starting to get reasonably familiar with Radiant. I've written a few > extensions - even front-end ones. I've looked into some of the code as > necessary. > > But I'm not super familiar with the user interface since I'm typically > looking at code rather than configuring the layouts and snippets. Maybe I'm > missing something, but is there a "preview" option for pages? I kind of > just assumed this was possible - that one could preview a page prior to > publishing it. For the life of me, I can't figure out how to do such a > thing. > > If "preview" is not built in, has anyone written something to provide this > functionality? > > Thanks! > _______________________________________________ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
