[pmwiki-users] redefine existing (default)markup

Dominique Faure dominique.faure at gmail.com
Thu May 24 06:22:48 CDT 2007


On 5/24/07, noskule <noskule at gmx.net> wrote:
> hi list
> I try to change the existing page-section markup to
>
> Markup('noright', 'directives',
>    '/\\(:noright:\\)/ei',
>    "SetTmplDisplay('PageContentHeaderRightFmt',0) .
>    SetTmplDisplay('PageRelatedNavigationRightFmt',0) .
>    SetTmplDisplay('PageContentRightFmt',0)");
>
>
> this only works if I change "noright" to somthing else. The code I
> placed in skin.php. Is this susposed to work or do I miss something?
>

You could also try to alter the previously registered markup:

global $MarkupTable;
$MarkupTable['noright']['rep'] =
  "SetTmplDisplay('PageContentHeaderRightFmt',0) .
  SetTmplDisplay('PageRelatedNavigationRightFmt',0) .
  SetTmplDisplay('PageContentRightFmt',0)";

Dominique



More information about the pmwiki-users mailing list