[ZDP] ZDPFAQ questions

Maik Roeder roeder@berg.net
Mon, 06 Mar 2000 12:25:37 +0100


Hi Rik !

Rik Hoekstra wrote:
> 
> Maik,
> 
> I added a question to the FAQ. It is What is Zope, which I think should
> be the first question in the General section ;-)
> Is there a way to change the order in the FAQ, or rather, how is it
> determined?

The order is whatever the following returns:

<dtml-in "objectValues(['FAQQuestion'])">

We can introduce an order variable to an extra Property Sheet
on the questions, and determine the order by this:

<dtml-in "objectValues(['FAQQuestion'])" sort=order>

When you add a new Question somewhere in the middle, you will have to
resort all Questions which come after it manually. We could use
a snippet which does this job for you. Maybe a Python Method could 
be used ? I think Zope should have a functionality for managing
the order, but I have not heard about something like this being
planned.

Greetings,

Maik Röder