On Sunday 10 July 2011 18:39:00, Markus Heinzer wrote :
> Normally skins for pmwiki are displaying the wikipage-title first and
> then the groupheader. Is there a way to change this?
> 1. groupheader
> 2. title of the page

Hello. This is not a standard PmWiki feature, it is possible, but some related 
PmWiki directives may stop working. There are two possible ways to do it.

You can modify your skin.tmpl file, and insert where you need it something 
like this:

  <!--wiki:{$Group}.GroupHeader-->

Then, in config.php, use $GroupHeaderFmt = '';

Side effect: the (:nogroupheader:) directive will stop working.


Alternatively, you can use this code in config.php or Group.php:

  SetTmplDisplay('PageTitleFmt',0);

  $GroupHeaderFmt = '(:include {$Group}.GroupHeader self=0
   basepage={*$FullName}:)(:nl:)(:div1 id=wikititle:)(:nl:)(:div2
   class=pagegroup:)(:nl:)[[{$Group}/]] /(:nl:)(:div2end:)(:nl:)! {$Title}
   %block pagetitle%(:nl:)(:div1end:)'; # This should be one line!

Side effect: the (:notitle:) directive will stop working, and the 
(:nogroupheader:) directive will remove both the header and the title.

Good luck,
Petko

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to