openblog

qMax <[email protected]> Mon, 23 Jan 2006 18:04:23 +0600
Newsgroups gmane.comp.cms.bitflux.general
Message-ID <[email protected]>
I've tried to set up openblog to play with.

Collection '/test'/ is configured like this:
<bxcms xmlns="http://bitflux.org/config">
    <plugins>
       <parameter name="xslt" type="pipeline" value="openblog.xsl"/>
       <extension type="html"/>
       <plugin type="openblog" admin="true"></plugin>
       <plugin type="navitree"></plugin>
    </plugins>
</bxcms>

Now,
bx_plugins_openblog::getContentById(/test/,index):
registers stream blog:// and retrieves "blog://newpost.xml",
which in turn leads to bx_streams_blog::contentOnRead("/newpost.xml"):
    function contentOnRead($path) {
        $parts =  bx_collections::getCollectionAndFileParts($path, "output");
        $p = $parts['coll']->getFirstPluginMapByRequest("index","html");
        $p = $p['plugin'];
        
So, it tries to find out plugin for collection '/' with id 'index'
what is completely wrong.

If collection path is passed correctly (fixing openblog::getContentById),
stream_blog::contentOnRead get recursed back to plugin_openblog::getContentById,
and when there redirect to Location: /post/ and failure to get anything in
collection '/post/'.

What do i miss here ?
Is openblog.php in bxcms-1.3 a working plugin in some way ?

-- 
 qMax

-- 
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms