Re: [pmwiki-users] PageLogoURL as Link

2010-12-10 Thread George Laverick
On Thu, 09 Dec 2010 12:00:01 -0600
pmwiki-users-requ...@pmichaud.com wrote:

> Subject: Re: [pmwiki-users] PageLogoURL as Link
> Message-ID: <20101209152128.gd6...@pmichaud.com>
> Content-Type: text/plain; charset=us-ascii
> 
> On Sat, Dec 04, 2010 at 04:12:08PM -0500, George Laverick wrote:
> > On Sat, 4 Dec 2010 19:38:29 +0100
> > Peter Bowers  wrote:
> > 
> > > On Sat, Dec 4, 2010 at 5:52 PM, George Laverick
> > >  wrote:
> > > >
> > > > The image defined by $PageLogoURL is also a link. By default, it
> > > > points to the home page of the wiki. I would like it to point
> > > > to a URL that is outside of the wiki, but I have been unable to
> > > > find where that is defined.
> > > >
> > > > If it helps any, I am using the Triad skin.
> > > 
> > > Look in Site/PageHeader
> > > 
> > > -Peter
> > 
> > I found the Site.Pageheader page and it contained a string that
> > looked like this:
> > 
> > [[{$ScriptUrl}|{$PageLogoUrl}]]
> > 
> > I went into config.php and defined a variable $MotherUrl (also tried
> > defining it in pmwiki.php) and changing the above string to:
> > 
> > [[{$MotherUrl}|{$PageLogoUrl}]]
> 
> Seems like you should be able to just do
> 
>[[http://other.location | {$PageLogoUrl}]]
> 
> and avoid the definition of a {$MotherUrl} variable entirely.
> 
> Pm

I tried that. It didn't work (seems like it should though). Using
Peter's method to define $MotherUrl worked fine.

George

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] PageLogoURL as Link

2010-12-09 Thread Patrick R. Michaud
On Sat, Dec 04, 2010 at 04:12:08PM -0500, George Laverick wrote:
> On Sat, 4 Dec 2010 19:38:29 +0100
> Peter Bowers  wrote:
> 
> > On Sat, Dec 4, 2010 at 5:52 PM, George Laverick 
> > wrote:
> > >
> > > The image defined by $PageLogoURL is also a link. By default, it
> > > points to the home page of the wiki. I would like it to point to a
> > > URL that is outside of the wiki, but I have been unable to find
> > > where that is defined.
> > >
> > > If it helps any, I am using the Triad skin.
> > 
> > Look in Site/PageHeader
> > 
> > -Peter
> 
> I found the Site.Pageheader page and it contained a string that looked
> like this:
> 
> [[{$ScriptUrl}|{$PageLogoUrl}]]
> 
> I went into config.php and defined a variable $MotherUrl (also tried
> defining it in pmwiki.php) and changing the above string to:
> 
> [[{$MotherUrl}|{$PageLogoUrl}]]

Seems like you should be able to just do

   [[http://other.location | {$PageLogoUrl}]]

and avoid the definition of a {$MotherUrl} variable entirely.

Pm

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] PageLogoURL as Link

2010-12-04 Thread George Laverick
On Sat, 04 Dec 2010 16:58:04 -0500
DaveG  wrote:

> 
> 
> On 12/4/2010 4:12 PM, George Laverick wrote:
> >>> The image defined by $PageLogoURL is also a link. By default, it
> >>> points to the home page of the wiki. I would like it to point to a
> >>> URL that is outside of the wiki, but I have been unable to find
> >>> where that is defined.
> 
> > I found the Site.Pageheader page and it contained a string that
> > looked like this:
> >
> > [[{$ScriptUrl}|{$PageLogoUrl}]]
> >
> > I went into config.php and defined a variable $MotherUrl (also tried
> > defining it in pmwiki.php) and changing the above string to:
> >
> > [[{$MotherUrl}|{$PageLogoUrl}]]
> In order to make a variable available to a PmWiki page you need to
> use $FmtPV (ref
> http://www.pmwiki.org/wiki/PmWiki/PageVariables#custompv).
> 
> Notice the variable needs to be a PHP expression, and so in this case
> is a quoted string inside a double quoted string:
>$FmtPV['$MotherUrl'] = "'MY_URL'";
> 
> Also, always add your own settings to config.php, don't change
> pmwiki.php.
> 
> 
>   ~ ~ Dave
> 

Works great! Thank you!

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] PageLogoURL as Link

2010-12-04 Thread DaveG



On 12/4/2010 4:12 PM, George Laverick wrote:

The image defined by $PageLogoURL is also a link. By default, it
points to the home page of the wiki. I would like it to point to a
URL that is outside of the wiki, but I have been unable to find
where that is defined.



I found the Site.Pageheader page and it contained a string that looked
like this:

[[{$ScriptUrl}|{$PageLogoUrl}]]

I went into config.php and defined a variable $MotherUrl (also tried
defining it in pmwiki.php) and changing the above string to:

[[{$MotherUrl}|{$PageLogoUrl}]]
In order to make a variable available to a PmWiki page you need to use 
$FmtPV (ref http://www.pmwiki.org/wiki/PmWiki/PageVariables#custompv).


Notice the variable needs to be a PHP expression, and so in this case is 
a quoted string inside a double quoted string:

  $FmtPV['$MotherUrl'] = "'MY_URL'";

Also, always add your own settings to config.php, don't change pmwiki.php.


 ~ ~ Dave


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] PageLogoURL as Link

2010-12-04 Thread George Laverick
On Sat, 4 Dec 2010 19:38:29 +0100
Peter Bowers  wrote:

> On Sat, Dec 4, 2010 at 5:52 PM, George Laverick 
> wrote:
> >
> > The image defined by $PageLogoURL is also a link. By default, it
> > points to the home page of the wiki. I would like it to point to a
> > URL that is outside of the wiki, but I have been unable to find
> > where that is defined.
> >
> > If it helps any, I am using the Triad skin.
> 
> Look in Site/PageHeader
> 
> -Peter

I found the Site.Pageheader page and it contained a string that looked
like this:

[[{$ScriptUrl}|{$PageLogoUrl}]]

I went into config.php and defined a variable $MotherUrl (also tried
defining it in pmwiki.php) and changing the above string to:

[[{$MotherUrl}|{$PageLogoUrl}]]

This caused my logo to disappear entirely.

Obviously, I am not sure how this is supposed to work.

-George


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] PageLogoURL as Link

2010-12-04 Thread Peter Bowers
On Sat, Dec 4, 2010 at 5:52 PM, George Laverick  wrote:
>
> The image defined by $PageLogoURL is also a link. By default, it points
> to the home page of the wiki. I would like it to point to a URL that is
> outside of the wiki, but I have been unable to find where that is
> defined.
>
> If it helps any, I am using the Triad skin.

Look in Site/PageHeader

-Peter

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] PageLogoURL as Link

2010-12-04 Thread George Laverick
The image defined by $PageLogoURL is also a link. By default, it points
to the home page of the wiki. I would like it to point to a URL that is
outside of the wiki, but I have been unable to find where that is
defined.

If it helps any, I am using the Triad skin.

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users