Thanks a lot Allen. I'll give it a try.

On 1/13/07, Allen Gilliland <[EMAIL PROTECTED]> wrote:

I don't know of anyone who has actually done this using Roller, but it
should be a very reasonable task if you are using the current Roller 3.x
code and don't mind doing a little bit of programming.

There are basically 2 things that you would need to do (i think) ...

1. Write your own RequestMapper which can route weblog requests properly
based on the url.  The interface only has 1 method to implement and you
can see how the Roller does this in its normal configuration by looking
at the WeblogRequestMapper in the org.apache.roller.ui.rendering
package.  After you have created your new request mapper you just need
to configure it to be used by altering the right properties in your
roller-custom.properties file.  Basically ...

# replace Roller's built-in request mappers with a custom one
rendering.rollerRequestMappers=my.package.MyRequestMapper

2. You'll also need to update Roller's url constructing strategy to
actually form urls using your desired structure.  Unfortunately this
part wasn't originally designed to be as pluggable as the request
mappers (which we should fix), but luckily the code is at least
consolidated.  You would basically just need to change the way most of
the methods in the URLUtilities class works.  That class is in the
org.apache.roller.util package.

good luck and let us know how it turns out.

-- Allen


Sutra Zhou wrote:
> I need this feature too.
>
> 2007/1/6, climbingrose <[EMAIL PROTECTED]>:
>>
>> Hi all,
>>
>> Just wondering if someone has implemented subdomain to blog mapping
>> function
>> in Roller. For example, test.example.com maps to the "test" blog which
>> normally will be at example.com/roller/test. Wordpress seems to do this
>> via
>> URL rewrite mod.
>>
>> Thanks.
>>
>> --
>> Regards,
>>
>> Cuong Hoang
>>
>>
>




--
Regards,

Cuong Hoang

Reply via email to