[typo] generating the base URL

Trejkaz trejkaz at trypticon.org
Thu Nov 17 20:43:45 EST 2005

>> 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....

> url_for()

The "Rails Way" is to use image_path() because assets can be on a
completely different URL root from the controllers.


More information about the Typo-list mailing list