[pmwiki-users] Alternatives to $ScriptUrl - inventing $ tags?
Martin Fick
mogulguy at yahoo.com
Wed Nov 8 20:11:14 CST 2006
--- "Donald Z. Osborn" <dzosborn at gmail.com> wrote:
> Here's the problem:
> 1) The pmwiki.tmpl has this line:
>
> <div id='wikilogo'><a href='{$ScriptUrl}'><img
> src='$PageLogoUrl'
> alt='$WikiTitle' border='0' /></a></div>
>
> 2) I think that <a href='{$ScriptUrl}'> is routing
> the click to the
> Main.HomePage - in any event that's where you end up
> when you click the logo
I think that it would route to the pmwiki.php, and
since you have not specified a page name, it probably
is defaulting to Main.HomePage
> 3) I tried adding $ScriptUrl = 'HomePage' in the
> config file, but that made
> a mess (didn't see that $ScriptUrl is used for a
> bunch of things later on- so I undid that)
Yes, don't touch that! (At least not for this)
> 4) I think I can replace {$ScriptUrl} with HomePage
> in the pmwiki.tmpl file,
> but that will mean that every wikigroup regardless
> of language will have to
> start with HomePage rather than Accueil or whatever.
I don't know much about skins, but maybe you can try:
<a href='{$ScriptUrl}/{$Group}/'>
Not sure if that will always go to the right place
tough since the trailing / will probably not get
interpretted by pmwiki to mean the group homepage like
it would in a wiki page link,
-Martin
____________________________________________________________________________________
Yahoo! Music Unlimited
Access over 1 million songs.
http://music.yahoo.com/unlimited
More information about the pmwiki-users
mailing list