You need to log in before you can comment on or make changes to this bug.
The path to the css file needs to go through a similar hierarchy as buttonizer and WaitImage does when looking for the css file specified in the shared resource. absolute web paths work, ("/msapps/application/popup.css") but relative ones ("skins/flat_grey/popup.css") are looking relative to chameleon, not relative to the template. another issue that I'm wondering about, for paths in general, what happens if I have popup.css in the same folder as the template ("popup.css") will it look relative to chameleon and use that popup.css or will it look relative to the template and use that popup.css?
to be fixed/reviewed for 1.99 beta
updated version to 1.99
working on this now
it will check relative to the application first and use it, then assume relative to the chameleon installation.
fixed in cvs version ... the code was correct but was being processed in the wrong order of priority so that the css file would be found in the file system before it was found relative to a web path.
verified using beta 2 2004-06-20 on Windows 2000 IE 6 http://localhost/chameleon/samples/sample_bilingual.phtml http://localhost/....hawaii demo All popups are able to find the css file
Fred is it possible to have a methodology to test that this bug is fixed? I made a few tests but I am not sure I'm verifying the right thing. For example I renamed the "popup.css" in the "/path/to/chameleon_beta/htdocs/skins/default/css" directory and got no error when opening samples popup windows.
I guess the best way to test this is to have two different css files that have the same name, but located in different places (with very different styles) using a relative url in the shared resource eg. "skins/flat_grey/popup.css" so if there is a css that makes the popups green relative to chameleon, and another that makes them blue relative to the template, you would know that this is working if the popups were blue.
I need documentation on how to create a popup sharedresource.
to add a popup shared resource you need a line like this in your template <cwc2 type="SharedResource" name="PopupCSS" value="/msapps/demo_app/popup.css"/> I'd recomend just duplicating the default popup.css that comes with chameleon, and changing the colours so you can tell the two apart.
Verified on Fedora Core 1 Chameleon 20040625 with "sample_enhanced.phtml" sample. I added the "<cwc2 type="SharedResource" name="PopupCSS" value="css/popup.css"/>" line in the "html" file. It looks first in the application directory then in the chameleon installation directory. I followed instructions in comment #8.