tinyMCE - cms_selflink problem

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
stevegos

tinyMCE - cms_selflink problem

Post 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
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1974
Joined: Mon Jan 29, 2007 4:47 pm

Re: tinyMCE - cms_selflink problem

Post 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?
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
stevegos

Re: tinyMCE - cms_selflink problem

Post 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.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1974
Joined: Mon Jan 29, 2007 4:47 pm

Re: tinyMCE - cms_selflink problem

Post 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.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: tinyMCE - cms_selflink problem

Post by staartmees »

Extensions > TinyMCE WYSIWYG > Advanced
set CMS-linker link-style to <a href>-style
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: tinyMCE - cms_selflink problem

Post by Dr.CSS »

Looks to me like your domain name has some kind of strange spaces in it...
Locked

Return to “Modules/Add-Ons”