[pmwiki-users] change link in header image?

H. Fox haganfox at users.sourceforge.net
Sun Sep 2 10:38:44 CDT 2007


On 8/31/07, jpwares at mac.com <jpwares at mac.com> wrote:
> Hello,
>
> I'd like to set up a group within my wiki, but I'd prefer that when
> they click on the image at the top, it links back to the main page of
> the GROUP, rather than the main page of my entire wiki.  Is there an
> easy way to change this URL?

Modify your skin template.  For example, before:

  <div id='wikilogo'><a href='{$ScriptUrl}'><img src='$PageLogoUrl'
    alt='$WikiTitle' border='0' /></a></div>

after:

  <div id='wikilogo'><a href='{$ScriptUrl}?n={$Group}'><img src='$PageLogoUrl'
    alt='$WikiTitle' border='0' /></a></div>

See also: http://pmwiki.org/wiki/PmWiki/LayoutBasics#modifyskin

Hagan



More information about the pmwiki-users mailing list