[dokuwiki] Re: how to add dynamic css from a plugin ?

  • From: "Stéphane Gully" <stephane.gully@xxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 20 Mar 2008 11:54:55 +0100

>  > The problem is that action.php cannot generate the html headers before
>  > syntax.php because the css/js are calculated from the typed wiki text.
>  >
>  > This is a bit weird. Is there a solution ?
>  This sounds weird indeed, because this should be easily solvable with a
>  wrapper div having a class dependend on the typed wiki text. Can you
>  explain what you are trying to do? There might be no need to use
>  dynamic CSS at all...

I'm trying to integrate "micro applications" in a dokuwiki page. These
micro application (call it widget) are created using a non-intrusive
php framework called Pxxo [1]. A pxxo widget generates XHTML and
CSS/JS separately.

I'd like to write a plugin that makes possible to instantiate a widget
into a dw page using a special syntax. For example :
<pxxo widget="Pxxo_Widget_HelloWorld">
  <param name="myparam" value="myvalue />

So the dw plugin should be able to parse the page content, then be
able to instantiate the widget php code, then be able to insert in the
HTML head, the CSS/JS generated by the widget, and of course be able
to substitute the XHTML generated by the widget in the dw page.

[1] http://www.pxxo.net
Stéphane GULLY
DokuWiki mailing list - more info at

Other related posts: