Accessory, Module

Developer
Supported

True Preview

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Laisvunas

     

You must be logged in to post.

More Detail documentation

Support Request

fatrabbit
fatrabbit

Hi,

It will be good if you provide more detail documentation or more examples. Followed till step 4

5) Then go to template manager and enter the code for those templates which were defined in the step 4b).

Where to enter code in Template Manager?

Installed this module but on preview click it just showing current live entry not edited entry.

Thanks.

Laisvunas
# 1
Developer
Laisvunas

Hi,

In the step 4b you define certain template for certain channel by typing slash-separated group_name and template_name, e.g. for channel “News” you define template “entry_url/news”.

Then in the step 5 you go to template manager, open template “entry_url/news” and enter template code which will output URLs for the entries of the channel news. Most probably
you will need to wrap all the code of each of such templates with the tag pair exp:true_preview:url. E.g. :

{exp:true_preview:url parse="inward"}
{homepage}
/site/news/{true_preview_url_title}/
{/exp:true_preview:url} 

After you will hit “Submit” button you will see on the top of the Edit/Publish form the button “Preview” clicking which you will land on the page just edited.

BTW, I just released the version 1.1 which cancels default “View Entry” page, that is after clicking “Submit” button instead of “View Entry” page the Edit/Publish form will again be displayed.

fatrabbit
# 2
fatrabbit

To update just over write or uninstall and install updated?

Laisvunas
# 3
Developer
Laisvunas

Overwrite files. Then unistall and install just extension.

davedriesmans
# 4
davedriesmans

it’s a shame there aren’t more examples, you reuse the same example here.
i can’t get it working as i don’t understand step 5 in your manual

davedriesmans
# 5
davedriesmans

1) do create a new template for the preview
2) how do you wrap it {exp:true_preview:url parse=“inward”}

...

Laisvunas
# 6
Developer
Laisvunas

Hi Dave,

In the step 4d you define certain template for certain channel by typing slash-separated group_name and template_name, e.g. for channel “News” you define template “entry_url/news”.

Then you go to template manages and create template group “entry_url” and template “news” inside that temoplate group.

Then you enter the code in this template:

{exp:true_preview:url parse="inward"}



{
/exp:true_preview:url} 

And then you put all other code of this template inside {exp:true_preview:url}{/exp:true_preview:url} tag pair.

imagineer
# 7
imagineer

Ok the documentation on this is retarded. I’m simply just going to add a preview button.
Create a preview copy of your template:

original template was news : site/news
make an empty template: site/news-preview

Then add this code into the template:

{exp:true_preview:url parse="inward"}
{site_url}index
.php?/{true_preview_url_title}/
<!-- 
make the above reflect your actual url -->
{/exp:true_preview:url} 

Then in the module settings, choose: site/news-preview as the channels template.


This module is kind of dorky. The render in page option seems to render every page in the channel, and even override css inside ee. Wouldn’t an iframe be easier? The documentation and implementation is a bit lame.