Page 1 of 1

tinyMCE - cms_selflink problem

Posted: Wed Apr 09, 2014 10:44 am
by stevegos
Hi

I had a problem with the news module not displaying images as the images URL created was relative to the root and not the page. Change the setting on TinyMCE not to create relative URls and its fixed.

But the internal links no longer work. They insert <a href="http://www.##domain##.co.uk/{cms_selflink href='pagealias' }">link</a> which outputs <a href="http://www.##domain##.co.uk/http://www. ... /pagealias }">link</a>

of course this does not work.

Any way around this?

Am using cms 1.11.9 and latest tinymce.

All help greatly appreciated.

Steve

Re: tinyMCE - cms_selflink problem

Posted: Wed Apr 09, 2014 10:55 am
by Jo Morg
stevegos wrote:I had a problem with the news module not displaying images as the images URL created was relative to the root and not the page.
And how were doing this originally to begin with?

Re: tinyMCE - cms_selflink problem

Posted: Wed Apr 09, 2014 11:17 am
by stevegos
originally the news posts never had any images in them, just text. Suddenly the web site administrator wanted to put images in them and discovered this problem.

Re: tinyMCE - cms_selflink problem

Posted: Wed Apr 09, 2014 11:28 am
by Jo Morg
What I meant was: how are you or is he trying to put images? It is a default behavior to use relative links for images. You would need to add prepend {$entry->file_location} to the image call in news templates.

Re: tinyMCE - cms_selflink problem

Posted: Wed Apr 09, 2014 12:02 pm
by staartmees
Extensions > TinyMCE WYSIWYG > Advanced
set CMS-linker link-style to <a href>-style

Re: tinyMCE - cms_selflink problem

Posted: Sat Apr 12, 2014 2:29 am
by Dr.CSS
Looks to me like your domain name has some kind of strange spaces in it...