Wrong image links in CGCalendar

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
thomahawk
Power Poster
Power Poster
Posts: 293
Joined: Fri Jul 25, 2008 10:13 am
Location: Zug, Switzerland

Wrong image links in CGCalendar

Post by thomahawk »

Hello CMSMS users

In my events detail pages, image links are wrong. The links goes to domain.com/calendar/7/uploads/image instead of domain.com/uploads/image

and I can not find where to influence that. Most easy solution would be to just define an absolute link for the image directly on the event detail, but TinyMCE does not save any change to that link, even when done directly in the code from tools/html.

I am using CMSMS 2.2.7, CGCalendar 2.5.1

Can't find any posts with the same problem in the forum, though.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3484
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Wrong image links in CGCalendar

Post by velden »

Consider using the <base> tag in the head section. It comes with the {metadata} tag by default, but if you don't use that you should create it yourself.

Something like:

Code: Select all

<base href="{root_url}" />
User avatar
thomahawk
Power Poster
Power Poster
Posts: 293
Joined: Fri Jul 25, 2008 10:13 am
Location: Zug, Switzerland

Re: Wrong image links in CGCalendar

Post by thomahawk »

Thank you velden! I seems I did indeed not use the meta tag for this page, because it is a simple iframe displayed in a fancybox popup.

Now with

Code: Select all

<base href="{root_url}" />
on the template, the image link is correct and the image displayed.

I am so glad for your help!

Greetings
Thomas
Post Reply

Return to “Modules/Add-Ons”