Re[2]: blog-collections as submenue of a other collection

qMax <[email protected]>
Newsgroups gmane.comp.cms.bitflux.general
Message-ID <[email protected]>
Thursday, December 29, 2005, 5:15:49 PM, Christian Stocker wrote:


CS> On 26.12.2005 12:10 Uhr, qMax wrote:
>> Tuesday, November 1, 2005, 12:11:12 AM, Matthias Dieke wrote:
>> MD> The collection "aktuell" has some more sub-collections:
>> MD> /akutell
>> MD>    /news (the blog)
>> MD>    /notizblock
>> MD>    /interview
>> MD>    ...
>> MD> To get a nested menue for the blog like this:
>> MD> /akutell
>> MD>    /news (the blog)
>> MD>      /all
>> MD>      /presse
>> 
>> I have similar wish, but cannot overload menu generating templates,
>> since they are too complex
>> (work with 2-passes using exsl:node-sets, and lot of other stuff to
>> generate navtree-like structure)
>> 
>> Is there another way to achive making categories to appear as
>> subcollections ?

CS> I agree, it's a little mess right now and we have to rethink the
CS> navigation-generation code (especially for the blog and the gallery
CS> plugin). I don't have a short and easy solution right now

Ah, I've got a point.
If to generate blog categories as collection children
bx_plugins_blog::getChildren should create some fake
collection-resources related to categories.
So it is required to write some special resource extending bx_collection
(required in tree.php)
It should has properties filename/displayname and block normal
resource/collection operations.
bx_resources_simplecollection does not fit, cause it is not derived from
bx_collection.

In bx_plugins_blog::getChildren there written:
//this could be an implementation for getChildren
// but I decided to do it with a portlet ;)
And what is the way to do it with portlet ?
Does it mean something similar to montharchive and authorarchive ?

-- 
 qMax

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