Re: blog-collections as submenue of a other collection
Christian Stocker <[email protected]>
| Newsgroups | gmane.comp.cms.bitflux.general |
|---|---|
| Organization | Bitflux GmbH |
| Message-ID | <[email protected]> |
On 31.10.2005 20:07 Uhr, Matthias Dieke wrote:
> Hi,
>
> Christian Stocker wrote:
>
>> hi
>>
>> can you check the apache error log, that may contain more information
>> what actually went wrong here
you have an infinite loop there (calling the same template over and over
again)
Sorry, don't have much time right now, if you can't solve it, i'll have
a loot at it tomorrow
chregu
>
>
> There seems that there is a problem with the "ul"-tag?!
>
> Thanks Matthias
>
> Here the logs:
>
> Warning[2] runtime error: file
> /var/www/fczeitz-frauen.de/bxcms/themes/fczeitz/blog.xsl element ul in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] xsltApplyOneTemplate: loop found ??? in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] try increasing xsltMaxDepth (--maxdepth) in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] Templates: in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] #0 name items/collection| plugin/collection in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] #1 name items/collection| plugin/collection in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] #2 name items/collection| plugin/collection in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] #3 name items/collection| plugin/collection in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] #4 name items/collection| plugin/collection in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] #5 name items/collection| plugin/collection in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] #6 name items/collection| plugin/collection in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] #7 name items/collection| plugin/collection in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] #8 name items/collection| plugin/collection in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] #9 name items/collection| plugin/collection in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] #10 name items/collection| plugin/collection in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] #11 name items/collection| plugin/collection in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] #12 name items/collection| plugin/collection in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] #13 name items/collection| plugin/collection in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] #14 name items/collection| plugin/collection in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] Variables: in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] #0 in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] var items in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] #2 in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] var link in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] #4 in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] var items in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] #6 in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] var link in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] #8 in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] var items in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] #10 in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] var link in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] #12 in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] var items in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] #14 in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
> Warning[2] var link in
> /var/www/fczeitz-frauen.de/bxcms/inc/popoon/components/transformers/xslt.php
> at line 102
>
>
>
>
>>
>> chregu
>>
>> On 31.10.2005 19:11 Uhr, Matthias Dieke wrote:
>>
>>> 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
>>>
>>>
>>>
>>>
>>>
>>
>>
--
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 1 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