[pmwiki-users] new page attribute

Henrik Bechmann henrik.bechmann at sympatico.ca
Mon Sep 25 18:09:58 CDT 2006


Patrick,
> When page text variables are implemented (likely for pmwiki-2.2.0-beta2
> or pmwiki-2.2.0-beta3), then you'll likely be able to do something like:
>
>     (:Summary:Here is my text summary. It contains a whole paragraph 
>     of text:)
>
> and you can access it with {$:Summary}.  
>   

So in a pagelist format, I could write

(:if  ! equal {=$:Summary} '' ) <include the summary field in the 
pagelist output> (:if:)

?? IOW What happens if (:summary: some summary :) doesn't exist? Does it 
return ''?
> ...and you can test for the presence of a summary by adding
> "(:Summary:" as a search term to pagelist.
>   
I wanted it for *inside* pagelist format rules...
> Personally, I've always thought of (:description:) as encompassing 
> short paragraphs.
In my magazine style website having all three (a few words, a sentence, 
and a short paragraph) is desirable for dealing with various contexts.

If possible, I actually would prefer what you said to the editor:

there will be a way for administrators 
and recipes to specify that certain properties should be
saved as page attributes.


...because that gives me the option to have a separate input field for 
Summary on the edit form. This is more explicit for the authors, and 
also easy to do

$FmtPV['$Summary'] = '$page["summary"]';


although it looks like text variables would work in a pinch.

Best,

- Henrik

-- 

Henrik Bechmann
www.osscommons.ca
www.bechmannsoftware.com
Webmaster, www.dufferinpark.ca





More information about the pmwiki-users mailing list