Re[2]: Re: [Bx-bugs] [Bug 899] doctypes
qMax <[email protected]> Tue, 14 Feb 2006 17:15:28 +0600
| Newsgroups | gmane.comp.cms.bitflux.general |
|---|---|
| Message-ID | <[email protected]> |
Hm... editors are not plugins.
They also have getPipeline and getStylesheetById methods.
But called with different parameters in bx_plugins_admin_edit:
$editor->getPipelineName($path, $id);
$editor->getStylesheetNameById($parts['colluri'], $parts['rawname']);
Can it be incapsulated into bx_editor::getPipelineProperties just like for plugins?
Most of editors returns nothing for stylesheet, the ooo.php returns
constant 'ooo.xsl', only blog editor mangles with $path and $id.
Tuesday, February 14, 2006, 3:50:41 PM, Christian Stocker wrote:
CS> Hi
CS> I have to check that in a calm minute, which I won't find today, just
CS> one answer:
>> in bxcmsadm action, parameter xslt is reset using
CS> getStylesheetNameByRequest()
>> In what circumstances in admin action there could be needed xslt
>> from plugin rather then from .configxml ?
CS> For example in bx_editors_blog.
CS> chregu
CS> On 13.2.2006 13:08 Uhr, qMax wrote:
>> Sunday, January 29, 2006, 6:38:07 PM, Christian Stocker wrote:
>> CS> Hi again
>> CS> I had some idea, about the getStylesheetNameByRequest method.
>> CS> Why not add another method like
>> $collection->>getPipelineParametersByRequest($filename,$ext)
>> CS> and the plugins can return a whole array of pipeline parameters, the
>> CS> xmldoc would then
>> CS> return array("stylesheet" => "mystylesheet.xsl");
>> CS> and the bxcms action puts them into the pipeline.
>> CS> This would make it more flexible to add any parameter to the pipeline
>> CS> and not just one called "stylesheet".
>>
>> And yet another question.
>> 3.
>> in bxcms action, there supposed, that 'xslt' must be set using getPipelineProperties()
>> (configured in .configxml), otherwise an exception raised.
>>
>> in bxcmsadm action, parameter xslt is reset using getStylesheetNameByRequest()
>>
>> In what circumstances in admin action there could be needed xslt
>> from plugin rather then from .configxml ?
>>
--
qMax
--
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms