[Chameleon] Best way to change popup CSS path for a specific application?

Ken Sanderson ken at rockies.ca
Mon Dec 13 15:57:01 EST 2004


Thanks Bart, that worked perfectly.

Did you also get this working for the WMSBrowser and LayerManager2 
widgets? Seems like they are ignoring the shared resource.

Ken

Bart van den Eijnden wrote:
> Forgot to mention, the value I use is a relative URL and not a file 
> system  path. But a file system path should work as well (maybe 
> depending on which  Chameleon version you are using).
> 
> If something does not work, view the source of your generated page to 
> see  if the file system path is resolved correctly to a URL.
> 
> Best regards,
> Bart
> 
> On Mon, 13 Dec 2004 20:20:56 +0100, Bart van den Eijnden  
> <bartvde at xs4all.nl> wrote:
> 
>> Hi Ken,
>>
>> I use the following in my application templates:
>>
>> <cwc2 type="SharedResource" name="PopupCSS"  
>> value="/chameleon/geoservices/geoservices.css"/>
>>
>> Best regards,
>> Bart
>>
>> On Mon, 13 Dec 2004 12:23:20 -0700, Ken Sanderson <ken at rockies.ca> wrote:
>>
>>> Basically trying to add the color scheme of a specific application 
>>> to  its popup's.
>>>
>>> Looking through the files I found a line that looked like it checked 
>>> if  gszCSSFile was empty, and if so use the default, if not than use 
>>> it. So  in my main PHP page for the application, I added the 
>>> following line, to  point to a new location.
>>>
>>> $_SESSION['gszCSSFile'] = "G:/myproject/popup.css";
>>>
>>> This works great for my personal IE 6.0 browser, but not the person  
>>> sitting next time, nor for my firefox. No idea why that bit of PHP 
>>> is  causing a cross browser problem, but thought I would see if 
>>> anyone has  done this and if so how did they do it?
>>>
>>> Thanks,
>>>
>>> Ken
>>>
>>> _______________________________________________
>>> Chameleon mailing list
>>> Chameleon at lists.maptools.org
>>> http://lists.maptools.org/mailman/listinfo/chameleon
>>>
>>
>>
>>
> 
> 
> 



More information about the Chameleon mailing list