[Pmwiki-users] getting the template path?

Patrick R. Michaud pmichaud
Tue Feb 24 11:27:33 CST 2004


On Tue, Feb 24, 2004 at 06:48:24PM +0100, Thomas -Balu- Walter wrote:
> Is there any variable that allows me to use <!--file:...--> with a path
> to the actual template directory?

Well, firstly, you can put $-substitutions in the <!--file:...->
directive, so you can define whatever path variables you like.

At present there's no predefined variable for the location of the
"pub/" or "pub/skins" directory, because things just start to get
messy when one does that.  But I'm open for suggestions.

> I wrote my own function to display "by AUTHOR" (if $LastModifiedBy is
> not empty) or "from HOST" instead (if $LastModifiedHost is not empty).
> ...
> Another thing I'd like to have is to link $LastModifiedBy to the
> apropriate profiles entry and was not able to find a way yet.

Set your display function (or variable) to output the full link if
LastModifiedBy is not empty:

   <a class='authorlink' href='$ScriptUrl/$AuthorGroup/$LastModifiedBy'>
     $LastModifiedBy</a>

Pm



More information about the pmwiki-users mailing list