[pmwiki-users] variable returns domain name?

Hans design5 at softflow.co.uk
Fri Apr 13 07:45:09 CDT 2007


Friday, April 13, 2007, 1:33:44 PM, Tegan wrote:

>  I'm looking for a variable that will provide my site's domain name,
> stripped of the URL's "http://www.", so, for instance, on the PmWiki
> site, it would return simply pmwiki.org.

> Is there such a animal, and if not is it possible to create a custom one?

Install the new MarkupExpressions recipe
http://www.pmwiki.org/wiki/Cookbook/MarkupExpressions

and use  {(substr {$ScriptUrl} 12)}

This should strip the http://www. from the ScriptUrl string.

  ~Hans




More information about the pmwiki-users mailing list