Re: Vote-Plugin

Christian Stocker <[email protected]>
Newsgroups gmane.comp.cms.bitflux.general
Organization Bitflux GmbH
Message-ID <[email protected]>

On 8.1.2006 18:36 Uhr, Matthias Dieke wrote:
> Hi,
> 
> I like to use the Vote-Plugin. It seems its not finished yet?

It's basically working, but not really tested :)

> 
> If you want I could "play" with it. I have some ideas...
> 
> At the moment the question and the possbile answers are stored in a
> xml-file.
> 
> <vote collectionUri="/vote" id="99">
>     <question>The Question</question>
>     <answer key="1">The first answer</answer>
>     <answer key="2">The second answer</answer>
>     <answer key="3">The third answer</answer>
>     <response>Thanks.</response>
> </vote>
> 
> The answers of the users will stored in the db.
> 
> What should be done when the user like to start a new voteing?
> 
> - Create a new xml-file?

yes.

Our .configxml looks like

    <plugins>
<extension type="xml"/>
        <parameter name="xslt" type="pipeline"
value="../standard/plugins/vote/vote.xsl"/>
        <plugin type="vote">
        <parameter name="configfile" value="files/vote/vote.xml"/>
        <parameter name="magickey" value="fsdfdsferw"/>
        </plugin>
    </plugins>

If you want another vote, you need a new <plugins/> section there (or
just overwrite the old one). If you want more than one vote per
installation, you need different xml files.

All answers go into the same db table, therefore the "id" attribute in
the xml is important.


HTH

chregu



> - change the current xml-file?
> - expand the current xml-file, like:
> <votes>
>   <vote id="">...</vote>
>   <vote id="">...</vote>
> </votes>
> 
> - or should the vote-stuff done ONLY with DB-tables (e.g. vote_question,
> vote_answer)
> 
> 
> If you have no preferences, I will do it in my own way. But at the moment
> I'm not sure what is "my way" ;)
> 
> 
> Matthias
> 
> 
> 
> 
> 

-- 
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 44 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71
http://www.bitflux.ch | [email protected] |  GPG 0x5CE1DECB
-- 
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.