plugin as portlet doesn't work
Matthias Dieke <[email protected]>
| Newsgroups | gmane.comp.cms.bitflux.general |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I wrote a plugin and I like to use it as portlet.
I did the following:
1. wrote plugin "bx_plugins_banner" (based on the gallery-plugin)
2. edited .configxml of the root and put this into it
<plugins inGetChildren="false">
<extension type="xml"/>
<file preg="#plugin=#"/>
<plugin type="banner">
</plugin>
</plugins>
3. and liked to use the plugin as portlet in master.xsl
<xsl:variable name="bannerParams" select="'1,6,files/banner/,true'" />
<xsl:variable name="banner" select="document(concat('portlet://',''
,'banner(',$bannerParams,').xml'))/bx/plugin[@name ='banner']/gallery"/>
<xsl:call-template name="gallery_displayBannerGallery">
<xsl:with-param name="gallery" select="$banner"/>
</xsl:call-template>
When I call www.domain.tld I get some error messages and the pictures of
the banner-gallery won't be shown.
BXCMSNG Errors:
Notice[8] Undefined index: banner(1,6,files/banner/,true)xml in
/home/dima/public_html/bxcms/inc/bx/collection.php at line 188.
Warning[2] Invalid argument supplied for foreach() in
/home/dima/public_html/bxcms/inc/bx/collection.php at line 133.
It seams that I never go to bx_plugins_banner::getContentById().
To test this I put echo "test"; exit; to the getContentById()-Method.
I can't remember how to show the xml-tree of a plugin?
www.domain.tld/?plugin=banner.xml&XML=1 ???
but I doesn't work, is this the correct syntax?
Thanks for your help
Matthias
--
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms