This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Mosaic custom widget image url
#1
Hi,

Have got another problem...

When I add a custom widget with images, its content is stored with a very strange path:
/apps/data/mosaic20/widgets/u/2/images/walllamp.png
Where /u/2/ corresponds to user defined widget number TWO !!! "Number TWO" means that this widget was added second to number ONE...

So.. to access images inside widgets you have to decide beforehand load sequence and put the correspondent link inside script.js If you change the sequence of widget loading to the system - all images will be broken Sad((

Why not to use /u/myname/ where "myname" is the name of a custom widget, that is not dependent on the load sequence?

Has anyone used custom widgets with images yet? Is there work around ? May be adding images to custom theme will solve the problem? Any ideas?


A.
Reply
#2
Have got a solution using css. Inside css images are accessed in a correct way not depending on a full widget url.
Reply


Forum Jump: