[typo] generating the base URL

Marco van Hylckama Vlieg marco at i-marco.nl
Thu Nov 17 09:55:56 EST 2005


Hi all,

I'm looking for a way to generate a Typo blog's base URL.
I have a default gravatar in my theme which I want to send as a 
parameter to gravatar.com.
I can generate a path like /images/theme/default_gravatar.png but I 
actually need:

http://www.serverhostname.com/images/theme/default_gravatar.png

Is there any way to generate that string from within Typo?

I looked through the Rails API but I can't find a thing....

Thanks in advance!

Marco



More information about the Typo-list mailing list