[pLog-svn] Path to Resources
Jon Daley
plogworld at jon.limedaley.com
Tue Mar 13 16:14:36 EDT 2007
We already have a configuration setting to put the resources
somewhere, and it is a filepath, since we never needed a web-accessible
URL before?
I like C the best. I don't understand the subdirectory
consideration for option A.
On Tue, 13 Mar 2007, Reto Hugi wrote:
> Hi
>
> Since we let the webserver deliver our resources we depend on knowing
> the url to the resource folder (and not only the server path). At the
> moment this is hard coded as /gallery/ within
> baserequestgenerator.class.php which of course brakes other settings
> (mine for example).
>
> Now, I started working on a fix, but found out that there are too many
> solutions and I'd like to discuss this first. Some are easy but rely on
> correct user settings others are more robust.
>
> a) in baserequestgenerator get the setting from resource_folder, assume
> that the path is set relative to the lt install directory and does not
> start in a subdirectors: ./resourses is ok, ./files/blog is not ok.
>
> b) let the wizard move all resources to ./gallery/ automatically (maybe
> inform the user first) and remove the resource_folder setting
>
> c) add a new setting called resource_folder_url and per default set it
> to "base_url"./gallery/ and let the user adjust it to whatever it is
> (maybe even on another domain!?!)
>
> I'd go for the third solution, but was wondering what you guys think.
>
> cheers,
> reto
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
>
--
Jon Daley
http://jon.limedaley.com/
If there is a possibility of several things going wrong, the one
that will cause the most damage will be the one to go wrong.
-- Murphy's Fourth Law
More information about the pLog-svn
mailing list