[Chameleon] Best way to change popup CSS path for a specific
application?
bartvde at xs4all.nl
bartvde at xs4all.nl
Tue Dec 14 04:24:32 EST 2004
Hi Ken,
the WMSBrowser is a Chameleon app itself so it does not listen to the
PopupCSS defined in your main template. I haven't checked in a while with
the WMSBrowser, but the version I have cannot be styled through CSS (all
elements are named differently etc.). But maybe this has changed with the
current version.
I have never used the LayerManager2. I checked briefly and it follows the
same approach as the WMSBrowser, it is a Chameleon app itself.
See also:
http://www.maptools.org/bugzilla/show_bug.cgi?id=399
Best regards,
Bart
> 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