From: John C. <joh...@ua...> - 2004-07-02 16:15:59
|
Reini, I made a mistake in my modification, you should only change line 187 to the following $div = HTML::div(array('id'=>'unfoldsubpages plugin')); $div->pushContent($content); return $div; Thanks, John -----Original Message----- From: php...@li... [mailto:php...@li...]On Behalf Of John Cole Sent: Friday, July 02, 2004 11:02 AM To: 'Reini Urban' Cc: php...@li... Subject: [Phpwiki-talk] <div> tag for plugins? Reini, I'm working on my docbook conversion and things are going pretty good so far. I'm rendering out htmlhelp and pdf's now. I'd like to suggest a small change that I hope won't impact anything, but would make converting xhmtl with xsl stylesheets easier (as far as I know how with xsl stylesheets). Would it be possible to put a <div> tag around each plugin with an id or class name of the plugin? I'm using the UnfoldSubpages plugin as docbook books, with each page included as a chapter. In order to have this work, I need each invocation of the UnfoldSubpages plugin to be in a tag. I have modified my UnfoldSubpages plugin like so: (changed lines 174-184 like so) $div = HTML::div(array('id'=>'unfoldsubpages plugin')); if (! $smalltitle) { $div->pushContent(HTML::p(array('class' => $quiet ? '' : 'transclusion-title'), fmt("Included from %s:", WikiLink($page)))); } $div->pushContent(HTML(HTML::div(array('class' => $quiet ? '' : 'transclusion'), false, $ct))); $content->pushContent($div); so that the contents of the plugin are in a <div id="unfoldsubpages plugin">plugin content</div> tags. This allows my xls stylesheet to convert this into a docbook <book></book> tag :-) Is this doable for all plugins? That would give me a lot of flexablity with my stylesheets. Thanks, John Cole ------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Phpwiki-talk mailing list Php...@li... https://lists.sourceforge.net/lists/listinfo/phpwiki-talk ------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. |