[pmwiki-users] Categories in a own textfield

Patrick R. Michaud pmichaud at pobox.com
Fri Sep 16 06:46:38 CDT 2005


On Fri, Sep 16, 2005 at 12:02:48PM +0200, nexyufuli evo wrote:
> I would like to use a sparate textfield for editting the category names. 
> Cause for one project it is nessesary that every page has categories. 
> So, if the textfield is emty, i can make a errormessage.
> What is the best way to do it? I thougt I could make a directive
> (:categories:)
> [[!categorie1]] [[!categorie2]]
> (:categoriesend:)

Instead of creating a separate textfield for this, we could write
an edit filter that requires at least one category be present in
the markup, otherwise it doesn't save the page and returns back 
to the edit form with an error message.  

Would that work?

Pm




More information about the pmwiki-users mailing list