blog-collections as submenue of a other collection

Matthias Dieke <[email protected]>
Newsgroups gmane.comp.cms.bitflux.general
Message-ID <[email protected]>
Hi,

for a client I moved the blog-plugin form "/blog" to "/aktuell/news". 
Everything works normal ;)

The collection "aktuell" has some more sub-collections:


/akutell
   /news (the blog)
   /notizblock
   /interview
   ...


To get a nested menue for the blog like this:

/akutell
   /news (the blog)
     /all
     /presse
     ...
   /notizblock
   /interview
   ...


I copied the "<xsl:template match="items/collection| 
plugin/collection">" form the master.xsl to the blog.xsl and modified 
the template:


<xsl:template match="items/collection| plugin/collection"> 


         .....

         <xsl:if test="local-name()='collection' and ( @selected = 
'selected')">

UNCOMMENT THE NEXT LINE
           <!-- <xsl:apply-templates select="."/> -->

ADDED THE NEXT LINE

           <xsl:apply-templates 
select="document(concat('portlet://',$collectionUri,'plugin=categories(',$filename,').xml'))/bx/plugin/collection"/>
         </xsl:if>

       </xsl:for-each>
     </ul>
   </xsl:if>

</xsl:template>


Now the menue will be shown in the way I like.

/akutell
   /news (the blog)
     /all
     /presse
     ...
   /notizblock
   /interview
   ...


When I click on "news" the latest blogposts will shown. But when I click 
on a blog-categorie or "all" I get these "PopoonXSLTParseErrorException":

  Message: XSLT Error in 
/var/www/fczeitz-frauen.de/bxcms/themes//fczeitz/blog.xsl

Code: 0

userInfo:

In File 
/var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php 
Line 106

stacktrace

#0 
/var/www/fczeitz-frauen.de/bxcms/tmp/_var_www_fczeitz-frauen.de_bxcms_sitemap_sitemap.xml(1565): 
popoon_components_transformers_xslt->DomStart(Object(DOMDocument))
#1 /var/www/fczeitz-frauen.de/bxcms/inc/popoon/sitemap.php(178): 
include('/var/www/fczeit...')
#2 /var/www/fczeitz-frauen.de/bxcms/inc/popoon/sitemap.php(164): 
popoon_sitemap->runSitemap('./tmp/_var_www_...')
#3 /var/www/fczeitz-frauen.de/bxcms/inc/popoon/popoon.php(182): 
popoon_sitemap->__construct('/var/www/fczeit...', 'aktuell/news/ne...', 
Object(bx_config))
#4 /var/www/fczeitz-frauen.de/bxcms/inc/popoon/popoon.php(160): 
popoon->run('/var/www/fczeit...', 'aktuell/news/ne...', Object(bx_config))
#5 /var/www/fczeitz-frauen.de/bxcms/index.php(28): 
popoon->__construct('/var/www/fczeit...', 'aktuell/news/ne...', 
Object(bx_config))
#6 {main}


I have no idea why I get the exception, can someone help me?

Thanks for your help.

Matthias





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