EE 1
EE 2
True Preview

Developer

Laisvunas

3rd Party (Commercial)
Current Version: 1.3.2

License Agreement

Buy Now!

$20.00
Qty:

Compatibility

If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Entry API
  • Publisher

Requirements

  • jQuery for the Control Panel

Add-On Type(s)

Accessory, Module

Tags

True Preview allows you to preview the entry being edited inside Preview tab on Edit/Publish form or by clicking Preview link above Edit/Publish form. This add-on also cancels default lame View Entry page, so that after clicking Submit button Edit/Publish form will be displayed again.

INSTALLATION FOR EE2.0+

1) Unzip downloaded files.

2) Upload the directory “True Preview” to /system/expressionengine/third_party on the server.

3) Go CP Home > Add-ons > Modules, find “True Preview” in modules list and click “Install”.
Then select module, extension, fieldtype and accessory and click “Install”.

4) Go to True Preview module’s settings page and set settings:

a) You can set if channel’s title should be displayed in Edit Entry page’s breadcrumbs. Default value is “yes”.

b) You can set if Preview tab should be displayed in Edit Entry page.

c) You can set if Preview button should be displayed in Edit Entry page.

d) For each channel you can define slash delimited template group and template name which will output URL for
the entries of the relevant channel. E.g. for the channel news you can define template this way: “entry_url/news”, i.e.
URLs for the entries of the News weblog will be outputted by the template “news” located in “entry_url” template group.

5) Then go to template manager and enter the code for those templates which were defined in the step 4d). Most probably
you will need to wrap all the code of each of such templates with the tag pair exp:true_preview:url. In URL template you
can use any relevant ExpressionEngine’s tag; tags can be nested as usual. Conditionals and global variables are also supported.

6) You also can set the height of the Preview panel in Preview tab. To do this go CP Home > Add-ons > Fieldtypes, click “True Preview” in
the list and change the value of Preview panel height. Default value is 70em.

7) Go CP Home > Add-ons > Accessories > True Preview, check member groups you wish to be able to use True preview and click “Update”.

THE TAG PAIR exp:true_preview:url

The tag pair exp:true_preview:url has several single variables useful for creating entry’s URL:

1) true_preview_site_id - outputs ID of the site.

2) true_preview_entry_id - outputs entry ID.

3) true_preview_url_title - outputs url_title of the entry.

4) true_preview_channel_id - outputs channel ID of the channel entry belongs to.

5) true_preview_channel_name - outputs channel short name of the channel entry belongs to.

SIMPLE EXAMPLE OF URL TEMPLATE CODE

Here only global variable “homepage” and the tag pair exp:true_preview:url has been used.

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


COMPLEX EXAMPLE OF URL TEMPLATE CODE

Here global variable “homepage”, the tag pair exp:true_preview:url, the tag exp:entry_cats of Entry Categories plugin (available at http://devot-ee.com/add-ons/entry-categories),
conditionals and tag nesting has been used.

{exp:true_preview:url parse="inward"}
{exp:entry_cats entry_id="{true_preview_entry_id}" site="{true_preview_site_id}"}
{homepage}/ebook/analysis_page/{level0_category0_cat_url_title}{if level1_category0_cat_id}-{level1_category0_cat_url_title}{/if}/{true_preview_url_title}/basic_analysis/
{/exp:entry_cats}
{/exp:true_preview:url}

This entry was created March 8, 2012, 1:56 pm.
This entry was last updated April 12, 2014, 8:14 am.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

1 Review:

Tom Spetter 11.16.12

Rating - {addon_rating_average}

You have to save first, so It’s not really a preview.  It will save you a trip to the front end of your site after saving if you find that useful. Also docs could be a little clearer.