Returns the top most root of the url string after the domain name.
For instance, if you're calling this under '/service/something/somethingelse', it returns 'service'.
We are using this to serve random ads for a service from a directory named the same as the section name in our Asset Tree. For instance, ads for /custom-programing are being served in a Page Layout template from '/home/ad-stuff/custom-programming'.
^RandomAssetProxy(^/;home/ad-stuff/^RootUrl;);
You could serve ads from anywhere by changing the argument to the base url of where your ads reside.
Diona Kidd
----
Knowmad Technologies
http://www.knowmad.com