[pmwiki-users] PageTextVariables and Spaces

Hans design5 at softflow.co.uk
Tue Oct 30 06:38:17 CDT 2007


I am using in a forum display template a placeholder to be replaced by
info held in a PTV from an author's Profiles page:

In the template:
{Profiles.{$$author}$:info}

In the Profiles page:
(:info:some personal information here:)

Now if an author signs with spaces in the name, the PTV will not be
retrieved. If the author sign as 'Aunt Mabel' then
{$$author} becomes 'Aunt Mabel' and
{Profiles.{$$author}$:info} becomes {Profiles.Aunt Mabel$:info}
which fails.
{'Profiles.Aunt Mabel'$:info} does not work.
Profiles.AuntMabel is Aunt Mabel's Profiles page. The link function
eliminates the spaces successfully.

How can I make it work even with spaces in author names?


  ~Hans   




More information about the pmwiki-users mailing list