Preview

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!

Barry Hess
[email protected]
http://www.bjhess.com

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

Thanks, Sean. I have a potential client that wants this functionality.
At
least now I can tell them it should be possible, given a little time.

~Barry

On 7/19/07, Sean C. [email protected] wrote:

extensions - even front-end ones. I’ve looked into some of the code as
If “preview” is not built in, has anyone written something to provide
Site: http://lists.radiantcms.org/mailman/listinfo/radiant


Barry Hess
[email protected]
http://www.bjhess.com

IIRC even draft pages are being rendered if your hostname begins with
‘dev.’ , e.g. ‘dev.xyz.org’ instead of ‘www.xyz.org’. Of course your
webserver has to be configured accordingly.

Greetings,
Sascha

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs