MapTools.org

[Chameleon] Path to button images

Hans Verlouw Hans.Verlouw@Geodan.nl
Mon, 19 Jan 2004 12:16:15 +0100
Paul,

The first solution works (relative to application file (index.phtml) in 
file system).
Thanks!
I think I tried this before, but probably I forgot to clear the button 
cache then...

Hans

At 1/19/2004 04:09 AM, Paul Spencer wrote:
>My appologies.  The full path to images used by the buttonizer (this is 
>about to change in the next day or so) should be calculated relative to 
>the chameleon web path.  If this is not happening then it is a bug.
>
>However, in the version about to be committed (I will describe all the 
>changes in an email once I have finished testing and have committed the 
>changes), the image path is calculated as follows:
>
>if not absolute:
>   test if image is found relative to application file (index.phtml) in 
> file system
>   test if image is found relative to application file (index.phtml) using 
> web path
>   test if image is found relative to chameleon path (chameleon.php) in 
> file system
>   assume image is relative to chameleon path (chameleon.php) using URL
>
>
>Cheers,
>
>Paul
>
>Hans Verlouw wrote:
>
>>Paul,
>>Thanks for your answer, but what I meant is the full path to the 
>>original, unbuttonized, images, which the buttonizer uses to generate the 
>>buttons from.
>>Hans
>>At 1/17/2004 05:16 PM, Paul Spencer wrote:
>>
>>>Hans,
>>>
>>>this is a setting in the cwc2.xml configuration file, button_cache_path.
>>>
>>>Cheers,
>>>
>>>Paul
>>>
>>>Hans Verlouw wrote:
>>>
>>>>Hello list,
>>>>Can somebody tell me whether there is a Chameleon variable for the full 
>>>>path to the TextButton images and other images used by the buttonizer?
>>>>This would be nice for transferring your template to another webserver 
>>>>that has Chameleon installed at a different location.
>>>>At the moment I am changing my template frequently. But every time I 
>>>>copy it from my developing machine to the webserver, I have to replace 
>>>>the paths to these images. (Do you know Murphy's law?)
>>>>I can't find it in the documentation nor at the wiki...
>>>>Thanks in advance,
>>>>Hans
>>>>Hans Verlouw
>>>>-------------------------------------
>>>>Geodan SDT b.v.
>>>>Buitenhaven 27-A
>>>>5211 TP 's-Hertogenbosch (NL)
>>>>-------------------------------------
>>>>Tel: +31 (0)73 - 692 5151
>>>>Fax:  +31 (0)73 - 692 5150
>>>>-------------------------------------
>>>>Postadres / mailing address
>>>>President Kennedylaan 1
>>>>1079 MB Amsterdam (NL)
>>>>-------------------------------------
>>>>E-mail: Hans.Verlouw@Geodan.nl
>>>>Website: www.geodan.nl
>>>>Disclaimer: www.geodan.nl/disclaimer
>>>>-------------------------------------
>>>>_______________________________________________
>>>>Chameleon mailing list
>>>>Chameleon@lists.maptools.org
>>>>http://lists.maptools.org/mailman/listinfo/chameleon
>>>
>>>
>>>--
>>>  -----------------------------------------------------------------
>>>|Paul Spencer                           spencer@dmsolutions.ca    |
>>>|-----------------------------------------------------------------|
>>>|Applications & Software Development                              |
>>>|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
>>>  -----------------------------------------------------------------
>>
>>_______________________________________________
>>Chameleon mailing list
>>Chameleon@lists.maptools.org
>>http://lists.maptools.org/mailman/listinfo/chameleon
>
>--
>  -----------------------------------------------------------------
>|Paul Spencer                           spencer@dmsolutions.ca    |
>|-----------------------------------------------------------------|
>|Applications & Software Development                              |
>|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
>  -----------------------------------------------------------------


Met vriendelijke groeten,

Hans Verlouw
-------------------------------------
Geodan SDT b.v.
Buitenhaven 27-A
5211 TP 's-Hertogenbosch (NL)
-------------------------------------
Tel: +31 (0)73 - 692 5151
Fax:  +31 (0)73 - 692 5150
-------------------------------------
Postadres / mailing address
President Kennedylaan 1
1079 MB Amsterdam (NL)
-------------------------------------
E-mail: Hans.Verlouw@Geodan.nl
Website: www.geodan.nl
Disclaimer: www.geodan.nl/disclaimer
-------------------------------------



This archive was generated by Pipermail.