
NitroHazeDev wrote...
Sham HC wrote...
How are you referring the images? Is url wrongly written for images?
Check AEM version & list of hotfix installed b/n author & publish. If 5.5 there was hotfix.
For now i have moved the clientlibs under etc, instead of using embed, which i was more keen on using.
Images are referenced from within the css/js files, ( ../images/image1.png), when i analyze though with embed approach js and css throws no errors, images still appear to be picked up from apps/ folder structure.
Thus, using embed, the images or fonts under the apps folder were being referenced (path ../../apps/../../image1.png), but the apps folder is locked down on publish. Hence it is not accessible. Though using embed, css and js issues were resolved, issue i was left with was the fonts,images folder under apps/proj/component/testcomponent/clientlibs,
Is there something more with embed, or is it a bug that only js and css files can be embedded and not the images or fonts folder within the clientlibrary folder?
There is no bug. In CQ5.4 and earlier urls in embedded css files are rewritten relative to the clientlib folder's location. In CQ5.5 onwards this mechanism has been changed and relative paths specified in embedded css files are resolved against the individual css file's location.