[Chameleon] having skins in a custom directory
Eijnden, B. van den (Bart)
b.vdeijnden at agi.rws.minvenw.nl
Fri Mar 17 07:42:48 EST 2006
Hi list,
I have my skin directory positioned under a custom directory
(apps/geoservices/htdocs/skins), and most of the Chameleon functionality
works fine.
There is however a problem with the Ruler widget, since fileSystemToURL does
not seem to be able to deal with such a situation.
$szRulerPix = $oApp->findFile( "images/ruler_pix.gif" );
$szRulerPix = $oApp->fileSystemToURL( $szRulerPix );
The outcome of this is:
http://145.50.148.45:82/data/geoservices-50/apps/geoservices/htdocs/skins/ge
oservices/images/ruler_pix.gif
which is the file path (/data/geoservices-50) appended to the ip:port
combination.
What is the correct way to deal with this kind of situation?
One way to solve it is to move up case 4 in the findFile routine so this
will be the first option checked by Chameleon (since the ruler images are
also under /chameleon/htdocs/images):
/* case 4 - relative to chameleon */
$szTempPath = $this->resolvePath2( $szFilePath,
$_SESSION['gszCorePath'] );
clearstatcache();
if ($szTempPath != "" && file_exists($szTempPath))
{
//echo "found: $szTempPath<BR>\n";
return $szTempPath;
}
However, I cannot foresee if this will have unwanted side effects (what is
the use of chameleon/htdocs/images anyway compared to the skins/images ?).
Thanks in advance.
Best regards,
Bart
Disclaimer
************************************************************************
Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is
uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis
hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te
informeren. Wij adviseren u om bij twijfel over de juistheid of de
volledigheid van de mail contact met afzender op te nemen.
This message shall not constitute any rights or obligations.
This message is intended solely for the addressee.
If you have received this message in error, please delete it and
notify the sender immediately. When in doubt whether this message
is correct or complete, please contact the sender.
************************************************************************
More information about the Chameleon
mailing list