My thoughts ...

All url building should be done using the URLStrategy, so if there are a couple places which aren't doing that then they should be fixed.

As Srinivasa said, putting the per weblog absolute url in the static config doesn't make sense, it should be in the db and configurable at runtime. In fact, it probably makes most sense for that to be a property of a Weblog and hence in the weblog table.

It sounds like there are 2 problems which may not share the same solution. In the past most people have asked for support of blog urls by subdomain, such as myblog.domain.com. In this case a blog owner wouldn't have the ability to set their blog url to anything they want, it's supposed to just be handled the same way for all blogs. Your proposal is to support blogs that can be hosted on any domain, which is a slightly different problem.

Solving for the subdomain situation should be just a matter of choosing a different URLStrategy and RequestMapper which are designed to expect urls of the form blog_handle.domain.com/rest/of/url. Your proposal is more designed for solving the true multi-domain problem.

-- Allen


srinivasa marreddy wrote:
     I think the second possibility ( Allow admins to specify pattern ) is
really good option. Thanks in advance for adding this to 4.1 .

-Sriini


On 2/4/08, Dave <[EMAIL PROTECTED]> wrote:
On Feb 4, 2008 11:05 AM, srinivasa marreddy <[EMAIL PROTECTED]> wrote:
   Looks simple and straight forward but to add new property for every
subdomain in properties file is going to be manual process. It would be
great if we store the url in the database( http://
screenname.rollerweblogger.org(default) or the other domain name )
during
registration process and use it instead of property file.
That's a good point, I think it translates to this requirement:
  - Allow users to set base blog URL via Roller UI (e.g. via Weblog
Settings page)

Another possibility:
  - Allow admin to specify pattern to use for blog URLs (e.g. using
URI template)

- Dave




Reply via email to