[SOLVED] CMS 1.6 - HTML tags inside {cms_selflink} tags

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
stevew
Forum Members
Forum Members
Posts: 74
Joined: Wed May 21, 2008 7:02 am

[SOLVED] CMS 1.6 - HTML tags inside {cms_selflink} tags

Post by stevew »

Hi,
Since updating to 1.6 HTML tags in links, e.g.

Code: Select all

{cms_selflink page="review_page" text="Review of <em>Les Misérables</em>"}
no longer work. Instead the tags are printed out on screen. I'm not using a WYSIWYG in the admin end.

Any idea what may be causing this?
TIA
Last edited by stevew on Wed Jul 01, 2009 3:35 pm, edited 1 time in total.
User avatar
blast2007
Power Poster
Power Poster
Posts: 508
Joined: Wed Aug 01, 2007 5:36 pm

Re: CMS 1.6 - HTML tags inside {cms_selflink} tags

Post by blast2007 »

Same here, all html codes are escaped so they're printed on the page.

This is it a big trouble?!?!

P.S. as workaround I've rolled back to 1.5.4 file /plugins/function.cms_selflink.php and all works again. Waiting for a patch

Here solution: http://forum.cmsmadesimple.org/index.php/topic,31913.0.html
Last edited by blast2007 on Fri Jun 26, 2009 10:43 am, edited 1 time in total.
stevew
Forum Members
Forum Members
Posts: 74
Joined: Wed May 21, 2008 7:02 am

Re: CMS 1.6 - HTML tags inside {cms_selflink} tags

Post by stevew »

If by solution you mean use the style instead of {cms_selflink}, I don't really see that as a solution. It worked before, so why not now? And what if I have a site with a large number of {cms_selflink}-style links? Do I now have to change them all?
In any case, I understood there were certain advantages to the {cms_selflink} style, mainly that in certain circumstances links would be preserved despite moving or renaming pages (not too sure about that, but did read it somewhere once).
User avatar
blast2007
Power Poster
Power Poster
Posts: 508
Joined: Wed Aug 01, 2007 5:36 pm

Re: CMS 1.6 - HTML tags inside {cms_selflink} tags

Post by blast2007 »

Follow similar thread here
stevew
Forum Members
Forum Members
Posts: 74
Joined: Wed May 21, 2008 7:02 am

Re: CMS 1.6 - HTML tags inside {cms_selflink} tags

Post by stevew »

blast2007, thanks for your last post in that thread you mention. That "clears it up" in the sense of explaining why it doesn't work any more. I'll label this SOLVED.
User avatar
blast2007
Power Poster
Power Poster
Posts: 508
Joined: Wed Aug 01, 2007 5:36 pm

Re: [SOLVED] CMS 1.6 - HTML tags inside {cms_selflink} tags

Post by blast2007 »

If you want to use function.cms_selflink.php of 1.6 just comment out that lines 345,361,439 and it will works again

regards
blast
Post Reply

Return to “CMSMS Core”