Re: blog-collections as submenue of a other collection
Matthias Dieke <[email protected]>
| Newsgroups | gmane.comp.cms.bitflux.general |
|---|---|
| Message-ID | <[email protected]> |
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
>
>
>
> I don't have to say sorry! I have to say sorry for asking everytime. I
> didn't find a solution, can you help me. Sorry.
Ok, I have to say SORRY for asking. First thinking then asking ;) I
solved the problem in this minute ;)
I added " and uri = '/aktuell/news/' " to the next line:
<xsl:if test="local-name()='collection' and ( @selected = 'selected')
and uri = '/aktuell/news/'">
Have a nice evening.
Matthias
>
> Matthias
>
>>>
>>>> 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
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>
>
--
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms