Summary: | [Chameleon 1.1] relative paths for PopupCSS shared resource not working | ||
---|---|---|---|
Product: | Chameleon | Reporter: | Fred Warnock <fwarnock@dmsolutions.ca> |
Component: | Core | Assignee: | Paul Spencer <pspencer@dmsolutions.ca> |
Status: | CLOSED FIXED | ||
Severity: | normal | CC: | chameleon-dev@lists.maptools.org |
Priority: | P1 | ||
Version: | 1.99 | ||
Target Milestone: | 1.99 beta 2 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
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.