[Chameleon] cwc2 service skin switch?
Paul Spencer
pspencer at dmsolutions.ca
Thu Oct 6 11:40:52 EDT 2005
Paul,
I don't think this is possible with the service instance. We would
need some sort of parameter passed to cwc2 like
skin=skins/default
in the URL. Or we could use something in the template. You could
try modifying cwc2.php as follows:
around line 705 you will find this line:
$oApp->CWCInitialize( $szDefaultTemplate ); //, $szMapFile );
add the following after it:
if (isset($_GET['skin']) && $_GET['skin'] != '')
{
$oApp->registerSkin($_GET['skin']);
}
Obviously in a full up implementation you would want to check to make
sure that the skin path existed in the right location and the value
passed is clean (secure).
Cheers
Paul
On 6-Oct-05, at 10:58 AM, Deschamps,Paul [NCR] wrote:
> Hello list,
>
> I am doing a cwc2 service implementation of chameleon. Seems like a
> simple question though I can not find an answer in the lists.
>
> How do you switch the skin in a template for cwc2 service?
>
> Paul Deschamps, UI Design / Graphic Artist
> Integrated Environmental Applications Branch / Direction des
> Applications Environnementales Intégrés
> Knowledge Integration Directorate / Direction générale de
> l'integration du savoir
> Environment Canada / Environnement Canada
> 70 Crémazie, 7th Floor / 7e étage
> Gatineau, Québec K1A 0H3
> Tel / Tél: (819) 934-2986
> E-mail / Courriel: Paul.Deschamps at ec.gc.ca
>
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
>
+-----------------------------------------------------------------+
|Paul Spencer pspencer at dmsolutions.ca |
+-----------------------------------------------------------------+
|Applications & Software Development |
|DM Solutions Group Inc http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+
More information about the Chameleon
mailing list