Issue 356: Allow absolute paths in icon URIs
Status:  Fixed
Owner: ----
Closed:  Sep 2012
Reported by graci...@anybox.fr, Sep 24, 2012
Hi, 

we started using dynatree in our content management framework a short while ago. First, thanks for the nice product, it allowed for quick integration, and we plan to deploy it more systematically.

Now to the feature request. 

Currently, ``data.icon`` is inconditionally concatenated with opts.imagePath (itself defaulting to ``/skin``).
But our framework provides absolute paths URIs (such as ``/myportal/news_item.png``). 
It does so because it's designed to work under several virtual hosting conditions at the same time with no need for the reverse proxies to rewrite HTML content.

I think a simple test to let absolute paths go through with no concatenation would be appropriate.

I've actually done it directly on the minified version we include (see http://hg.cps-cms.org/products/CPSUtil/rev/a0f0695b238c, but it's quite unreadable, I can issue a proper patch if you like)

NB: CSS based icons aren't really practical for us at this point. Everything is configurable and even dynamical in that framework, including document types, and I'd like not to have to generate stylesheets.

Keep up the good work !

Sep 24, 2012
Project Member #1 moo...@wwwendt.de
This issue was closed by revision r612.
Status: Fixed
Sep 25, 2012
Project Member #2 moo...@wwwendt.de
thanks for the proposal, i added this to the trunk.
Sep 25, 2012
#3 graci...@anybox.fr
Many thanks !
Jan 26, 2013
Project Member #4 moo...@wwwendt.de
(No comment was entered for this change.)
Labels: Milestone-Release0.0