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. |
From: John C. <joh...@ua...> - 2004-07-06 14:08:00
|
Reini, Thanks for the change! However, I tried it this morning (and I do have your change) but it doesn't seem to work. :-( I put a few echo's around the code and they didn't appear either. Maybe it was just a long weekend ;-) but I can't seem to make it work. Thanks, John Cole -----Original Message----- From: php...@li... [mailto:php...@li...]On Behalf Of Reini Urban Sent: Saturday, July 03, 2004 2:42 AM To: php...@li... Subject: Re: [Phpwiki-talk] <div> tag for plugins? John Cole wrote: > 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? Good idea. Not the classname and not another div tag, but the ID of the plugin DIV is now the plugin->getName(). Like so: <div class="plugin tightenable" id="AddComment"> Note, that we don't enumerate the id as we do in anchors for CreateToc, so duplicate plugins get the same id. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ ------------------------------------------------------- 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. |
From: John C. <joh...@ua...> - 2004-07-07 21:12:44
|
Reini, The rename multiple seems to act odd ;-) Here is my situation, I have a bunch of pages: chapter1/part1 chapter1/part2 chapter1/part3 etc... I realised that I need to have things named chapter01/part01, so I went to the admin menu and tried the admin select on chapter1/part* and it selected all of the pages I wanted to rename. Great! Now, I made sure all were selected and pressed the rename button. It came back with a page with a rename to->from box at the top. This page will not let me go on to the next one without putting something into the top rename from->to boxes, so I fill one out from: chapter1/part1 to:chapter01/part01 and press rename selected pages (all are selected) Next I'm back at a similar page, but with a 'Rename to' box next to each selected page. Looking good. I make all of my changes and press yes. And, it changes only the one I filled in the first from->to box, and the rest is returns Couldn't rename page 'chapter1/part2' to 'chapter01/part02' Hopefully it's something simple :-) 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. |
From: Reini U. <ru...@x-...> - 2004-07-08 09:42:35
|
John Cole wrote: > Reini, > The rename multiple seems to act odd ;-) > > Here is my situation, I have a bunch of pages: > > chapter1/part1 > chapter1/part2 > chapter1/part3 > > etc... > > I realised that I need to have things named chapter01/part01, so I went to > the admin menu and tried the admin select on chapter1/part* and it selected > all of the pages I wanted to rename. Great! > > Now, I made sure all were selected and pressed the rename button. It came > back with a page with a rename to->from box at the top. This page will not > let me go on to the next one without putting something into the top rename > from->to boxes, so I fill one out from: chapter1/part1 to:chapter01/part01 > and press rename selected pages (all are selected) > > Next I'm back at a similar page, but with a 'Rename to' box next to each > selected page. Looking good. > > I make all of my changes and press yes. > > And, it changes only the one I filled in the first from->to box, and the > rest is returns Couldn't rename page 'chapter1/part2' to 'chapter01/part02' > > Hopefully it's something simple :-) First rename "chapter1/*" from "chapter1/" to "chapter01/". Then rename "chapter01/*" from "part" to "part0". PS: The new regex option will help in the second step. "(\d)" => "0\1" if the parts are named like "part<number>" -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |