[pmwiki-users] Repost: Could Edit always include Preview?

Hans design at softflow.co.uk
Fri Apr 28 14:15:02 CDT 2006


Friday, April 28, 2006, 7:32:29 PM, Patrick wrote:
> Even better, shorter, and more robust is the following:

>     !!$[Preview {$FullName}]]
>     (:if e_preview:)'''$[Page is unsaved]'''(:if:)
>     (:e_preview:)
>     (:if e_preview:)
>     ---
>     '''$[End of preview -- remember to save]'''
>     (:if:)
>     [[#top | $[Top] ]]

> Notably, this version doesn't require the use of (:include:),
> nor does it result in the repeating include when the EditForm
> is being edited.

This does nothing for me. After small syntax correction:

!!$[Preview {$FullName}]
(:if e_preview:)'''$[Page is unsaved]'''(:if:)
(:e_preview:)
(:if e_preview:)
----
'''$[End of preview -- remember to save]'''
(:if:)
[[#top | $[Top] ]]

it still does nothing. Anything missing?
Why (:if e_preview:) twice?
What replaces the page include I proposed?


Best,
 Hans                           





More information about the pmwiki-users mailing list