David Bain wrote:
>
> To answer my own question. It looks like I need register the directories
> in:
> profiles/default/skins.xml of my product.
>
That's not a very good idea.
If you want to use old-fashioned skin layers, then do that. No-one's
stopping you However, making some kind of Frankenstein Zope 3 browser
resource/regular resource is not advisable.
The downside of this approach, is that these resources will "acquire" in a
flat namespace, so, say, if someone uploads a file myimage.png and you have
a myimage.png, then in some circumstances the file may override the image in
the skin layer. The ++resource++ namespace effectively protects you from
conflicts.
Note that you can also use <browser:resourceDirectory /> to avoid having to
register so many resources. That way, you do
++resource++some.directory/myimage.png.
Martin
--
View this message in context:
http://www.nabble.com/how-to-not-have-to-put-%2B%2Bresource%2B%2B-for-your-skin-resources-tf4938756s20094.html#a14150423
Sent from the Product Developers mailing list archive at Nabble.com.
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers