[Owncloud] multiple apps directories
eMerzh
merzhin at gmail.com
Tue Aug 28 10:28:05 UTC 2012
Ok, so previously if you want to use an image in your css you do smth
like %webroot%apps/myapp/myimage.jpg
now your app can be either under apps/ or core_apps under you webroot...
so now you can use in your css file a %appswebroot%
(https://github.com/owncloud/core/blob/master/lib/minimizer/css.php#L25
) that will take the path to the apps dir of the app
if your app is under core_apps then it will give you something like
my/web/root/core_apps ...
then you just have to add your app name and the path to the image
previously => %webroot%apps/myapp/myimage.jpg
now => %appswebroot%/myapp/myimage.jpg
I think this should work ( if not, i have to dig deeper to remember :p)
hope it get a little bit clearer for you...
On Tue, Aug 28, 2012 at 12:18 PM, Alessandro Cosentino
<cosenal at gmail.com> wrote:
> Edited: I asked a similar question a month ago. I understand that in
> case of multiple app folders, those folders are scanned in case of
> relative path, such as the css %appswebroot%. My question is: when is
> the 'url' specified in the config file used?
>
> On Tue, Aug 28, 2012 at 5:50 AM, Alessandro Cosentino <cosenal at gmail.com> wrote:
>> Hi Frank,
>> thanks!
>> It's still not clear to me what the url should be. For instance, in a
>> css, where does "%appswebroot%" point to?
>>
>> Alessandro
>>
>> On Mon, Aug 27, 2012 at 7:05 AM, Frank Karlitschek <frank at owncloud.org> wrote:
>>> Hi,
>>>
>>> because several people asked. Here is the description how to configure the multiple apps directory feature:
>>> https://github.com/owncloud/core/blob/master/config/config.sample.php
>>>
>>>
>>> Frank
More information about the Owncloud
mailing list