[Pmwiki-users] getting the template path?
Patrick R. Michaud
pmichaud
Thu Feb 26 16:14:09 CST 2004
On Thu, Feb 26, 2004 at 11:19:43PM +0100, Thomas -Balu- Walter wrote:
> On Tue, Feb 24, 2004 at 11:12:59PM +0100, Thomas -Balu- Walter wrote:
> > I have done the following now:
> >
> > $author=FreeLink('{{'.$LastModifiedBy.'}}');
> > printf('by <a href="%s/%s/%s">%s</a>',
> > $ScriptUrl,
> > $AuthorGroup,
> > $author['name'],
> > $LastModifiedBy
> > );
>
> This has one side-effect... Of course the link will always be displayed
> wether or not the author has a profile page. Is there a way to make it
> more like ThomasWalter? if the page does not exist?
Sure, and I can tell I'm a bit out of it these days because there are
a couple of obvious solutions worth trying:
echo 'by ',FmtWikiLink('','{{'.$LastModifiedBy.'}}',NULL));
or
PrintFmt($pagename,'function:PrintText {{'.$LastModifiedBy.'}}');
Pm
More information about the pmwiki-users
mailing list