Share » Forums » General » (Resolved) Article preview and going...

(Resolved) Article preview and going back to editing

(Resolved) Article preview and going back to editing

Friday 01 June 2007 9:17:00 am - 3 replies

Modified on Thursday 28 June 2007 5:09:29 am by David Zaoui

Author Message

André R.

Friday 01 June 2007 1:12:32 pm

Seesm like you need a version parameter somewhere, look at the ezwebin code ( the fronoffice editing extension added to 3.9, or the Website Interface as we call it ).

http://svn.ez.no/svn/extensions/ezwebin/trunk/packages/ezwebin_extension/ezextension/ezwebin/

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

David Zaoui

Wednesday 27 June 2007 7:43:39 am

Hi André,

It's weird, because i kept all parameters from the orginals edit.tpl , So i don't think it lacks a parameter.
To avoid the problem i want to open the preview in a new window so the user won"t have to go back to continue editing.

But do you know how to do this?

For now my edit.tpl file is like this :

<form enctype="multipart/form-data" id="editform" method="post" action={concat("/content/edit/",$object.id,"/",$edit_version,"/",$edit_language|not|choose(concat($edit_language,"/"),''))|ezurl}>

....
	<input class="button" type="submit" name="PreviewButton" value="{'Preview'|i18n('design/ezwebin/content/edit')}" />

.....
</form>

I try to modify it to have the preview open in a new window but it doesn't work :-(

Thanks

David Zaoui

Thursday 28 June 2007 5:08:49 am

Hi,

i finally found what i wanted : i simply added the following code to the "EditButton" on my preview page :

onclick="history.back()"

Thank you all !

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu