So this is what I'm trying to do : I want to add an image with a macro in the richtexteditor. The reason I'm not using the normal Image tool, is because I want to add a class,rel & group attribute to the image, and also an anchor tag. I'm doing it this way so that when you add an image, it automatically will be able to be opened with a fancybox.
I thought I had everything figured out, it's a pretty simple xslt file, but when I add an image for example "test.jpg", the src attribute of the image is something like this "test.jpg.84894515.jpg". So the image can't be found because of all the extra numbers that are added to the image link.
Adding a class to an image
So this is what I'm trying to do : I want to add an image with a macro in the richtexteditor. The reason I'm not using the normal Image tool, is because I want to add a class,rel & group attribute to the image, and also an anchor tag. I'm doing it this way so that when you add an image, it automatically will be able to be opened with a fancybox.
I thought I had everything figured out, it's a pretty simple xslt file, but when I add an image for example "test.jpg", the src attribute of the image is something like this "test.jpg.84894515.jpg". So the image can't be found because of all the extra numbers that are added to the image link.
Thanks if anyone can help with this.
I'm using the following macro :
Hi,
try to change your imageLink variable like this:
Thanks a lot, that worked!
is working on a reply...