Preview exceptions [solved]
Posted: Wed Oct 21, 2009 7:22 pm
In 1.5, I used the following code to avoid a bug that caused the preview to crap out.
This would allow my tag to render results in a browser, nothing in preview.
Now in 1.6.6, the preview mechanism has apparently changed and the above no longer works. I noticed the page is now editcontent.php, but replacing preview.php with editcontent.php doesn't seem to work either.
Anyone have an idea how to do this?
Code: Select all
{if $SCRIPT_NAME != "/preview.php"}
{sectiontitle levels='2'}
{/if}
Now in 1.6.6, the preview mechanism has apparently changed and the above no longer works. I noticed the page is now editcontent.php, but replacing preview.php with editcontent.php doesn't seem to work either.
Anyone have an idea how to do this?