Re: how to inlcude vote-plugin in the right way

Christian Stocker <[email protected]> Tue, 17 Jan 2006 21:50:35 +0100
Newsgroups gmane.comp.cms.bitflux.general
Organization Bitflux GmbH
Message-ID <[email protected]>

On 17.1.2006 21:40 Uhr, Matthias Dieke wrote:
> Is there nobody how can help me? I had a look at http://campus.phtg.ch/,
> there you use the vote plugin. How did you include the plugin to your start
> page? 
> 
> Did you use xinclude? I tried xinclude, but it doesn't worked :( 

sorry, community support is currently on low key here. busy with a lot
of other stuff. Anyway, here's a little howto

1) make a collection with the voteplugin in it.

2) include
<xsl:import href="../standard/plugins/vote/vote.xsl" />
in your xslt.

3) add the  following to the xslt.

<div id="votediv">
        <xsl:apply-templates
select="document('portlet://vote/index.xml')/bx/plugin[@name='vote']"
mode="vote"/>
        </div>

and also include the needed js:

<script type="text/javascript" src="{$webroot}webinc/js/vote.js"></script>


HTH

chregu

> 
> Please give me a little tip.
> 
> Thanks
> 
> Matthias
> 
>>Hi,
>>
>>sorry for asking. I still played with the vote-plugin (and used it), but
>>now
>>I like to know how do include the plugin in the right way ;)
>>
>>I like to use include the plugin at the start-page. Until now I did it in
>>this way:
>>
>>- created a home.xsl file (copied static.xsl)
>>- added <div id="votediv"> ... </div>
>>- uncommentet the following in /standard/plugins/vote/vote.xsl:
>>
>>  <!-- <xsl:template match="/">
>>   <xsl:apply-templates select="/bx/plugin[@name='vote']" mode="vote"/> 
>>    
>>    </xsl:template> -->
>>
>>- added <xsl:import href="../standard/plugins/vote/vote.xsl"/> to my
>>home.xsl
>>
>>- put <xsl:apply-templates select="/bx/plugin[@name='vote']" mode="vote"/>
>>between <div id="votediv"> ... </div>
>>
>>- changed the configxml of my root-folder:
>>
>>    <plugins>
>>	<parameter name="xslt" type="pipeline" value="home.xsl"/>
>>        <extension type="html"/>
>>       <extension type="xml"/>
>>        <plugin type="xhtml" admin="true"></plugin>
>>
>>
>>        <plugin type="vote">
>>          <parameter name="configfile" value="files/vote/vote.xml"/>
>>          <parameter name="magickey" value="jflsjflkluoirjj"/>
>>          <parameter name="currentVoteId" value="1000"/>
>>        </plugin>
>>        <plugin type="navitree"></plugin>
>>    </plugins>
>>
>>
>>- for the first moment I didn't used the vote.js and I thought all is
>>fine...
>>... then I used the vote.js (and xmlHttpRequest) and I realised that I
>>included the vote-plugin in the wrong way ;)
>>
>>
>>
>>I tried and tried... but I didn't found the right solution, please give me
>>a
>>little introduction.
>>
>>
>>Thanks for help.
>>
>>Matthias
>>
>>
>>-- 
>>Telefonieren Sie schon oder sparen Sie noch?
>>NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie
>>-- 
>>bitflux-cms mailing list
>>[email protected]
>>http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms
>>
> 
> 

-- 
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