WYSIWYG Editor CMS Linker Problem

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
delve2013
Forum Members
Forum Members
Posts: 91
Joined: Thu Jan 31, 2013 4:23 pm

WYSIWYG Editor CMS Linker Problem

Post by delve2013 »

I'm trying to use the CMS Linker icon to create a link to an internal page within my CMSMS site however the CMS Linker creates the smarty tag but on the front end when trying to click on the link, it doesn't output the URL and instead just displays the smarty tag in the browser address bar.

example of what is displayed when I click the link I've just created: "http://www.mywebsite.com/{cms_selflink href='product-detail'}

It should display:
"http://www.mywebsite.com/index.php?page=product-detail

Any ideas on whats going on here?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: WYSIWYG Editor CMS Linker Problem

Post by Dr.CSS »

I don't know which editor you are using but both have a internal page self link button it looks like an orange palm tree, you can hilite a word to be the text link or just use it and it will use the page name as the text link...

<a href="{cms_selflink href='how-cmsms-works'}">How CMSMS Works</a>

<a href="{cms_selflink href='default_templates'}">some text</a>
delve2013
Forum Members
Forum Members
Posts: 91
Joined: Thu Jan 31, 2013 4:23 pm

[SOLVED]Re: WYSIWYG Editor CMS Linker Problem

Post by delve2013 »

I was using the default WYSIWYG editor. I know how the self link icon works and how it lets you link up to internal pages. However in my case it wasn't working. Instead of creating a href to a valid page, it was just spitting out the {cms_selflink href='how-cmsms-works'} tag into my browser so when you clicked a link it was taking you to "http://mydomain.com/{cms_selflink href='how-cmsms-works'}

I've built over 20 websites using CMSMS and this one doesn't want to work. It may have something to do with the fact that I am using an attribute from Cataloger which has a text area value into which I am trying to enter the self link.

I changed the WYSIWYG editor to TINYMCE which does work in my scenario.
Last edited by Dr.CSS on Sun Oct 20, 2013 6:09 pm, edited 1 time in total.
Reason: Please use double quotes on fake links so they aren't clickable...
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1974
Joined: Mon Jan 29, 2007 4:47 pm

Re: WYSIWYG Editor CMS Linker Problem

Post by Jo Morg »

delve2013 wrote:I am using an attribute from Cataloger which has a text area value into which I am trying to enter the self link.
The correct way to do this is to call the tag in your sub-template like this:

Code: Select all

{eval var=$entry->foo}
Replace the foo by the attribute you are having the issue 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!
Post Reply

Return to “The Lounge”