[pmwiki-users] ZAP checklist for categories
Jiri
mail at revida.sk
Sun Nov 12 04:25:57 CST 2006
I really don,t know how to test "text variable for that page (on/off)"
and I tried a lot.
There is a category list only like
tags="[[!1994]] | [[!2006]] | [[!Akcie]] | [[!Clanky]]"
in text variables
and I think there is no conditional markup
to test "text1 is contained in text2"
Or is there? Then it would be very easy.
Really, I miss string comparision functions in PmWiki (except "equal")
There is the "if match" condition described in
http://www.pmwiki.org/wiki/Cookbook/ConditionalMarkupSamples
but as a nonPHPcoder I am not ready to use it
unless I start to study PHP manuals.
Would you help me?
Thanks,
Jiri
The Editor napsal(a):
> On 11/10/06, Jiri Hladůvka / OBUTEX <admin at obutex.com> wrote:
>> Hi Caveman,
>>
>> in my snippets for creating article I use
>> (:cellnr:)Categories:\\
>> (:pagelist group=Category name=-Category,-*Changes,-Group* fmt=#list
>> order=title:)
>> (:input hidden hidetagsfmt "[[!ITEM]]^ | ":)
>> (:input hidden unprotect hidetitle,...,hidetags:)
>> (:input hidden savedata "hidetitle,...,hidetags":)
>>
>> and a pagelist template
>>
>> [[#list]]
>> (:input checkbox hidetagslist[] {=$Name}:)'-{=$Title}-' '- ''({=$Description})'' -'\\
>> [[#listend]]
>>
>> to let the author to choose categories for the new article.
>> It works fine.
>>
>> But still I cannot find the way how to display the categories checkboxes
>> and refresh the saved categories in the form when the author decides to
>> change something.
>> I want to give him a possibility to add a category or to remove a category
>> to/from the checklist. I dont want him to get empty checkboxes to fill
>> them every time when editing the page.
>>
>>
>>
>> Would you help me with that.
>
>
> You could try putting a conditional in the pagelist template as it can
> read the text variable for that page (on/off). If on, put (:input
> checkbox hidetagslist[] {=$Name} checked:). If not, leave unchecked.
> Yes that should work... Let me know if you can do it. I need
> something similar.
>
...
> Cheers,
> Caveman
More information about the pmwiki-users
mailing list