Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-03-13 18:57:20
- aeolidia
- New Member
- Registered: 2009-03-13
- Posts: 4
After upgrading to 4.0.8, HTML code is displaying on the page
My client has a bunch of links set up through Content > Links.
The code for these is entered into the description. Here’s an example:
<a href=“http://www.scribbleitonline.com” target=”_blank”><img src=“http://i41.tinypic.com/105sc9y.gif” border=“0” alt=“Image and video hosting by TinyPic”></a>
This used to work, but the new version of Textpattern is translating all the tags to <, >, etc., making the HTML display directly on the page.
Please let me know what I can do to correct this! Thanks in advance.
Offline
#2 2009-03-13 19:02:13
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: After upgrading to 4.0.8, HTML code is displaying on the page
You need to add escape=""
to the link_description tag. The default value was changed to html
in 4.0.7.
Offline
#3 2009-03-13 19:38:59
- aeolidia
- New Member
- Registered: 2009-03-13
- Posts: 4
Re: After upgrading to 4.0.8, HTML code is displaying on the page
I’m not sure where I would add escape=”“
Here’s an example tag I’m using now to call links:
<txp:linklist form=“indexlink” category=“Main: Featured Rolodex” limit=“1” sort=“rand()” />
How would I add link_description to this?
Offline
#4 2009-03-13 19:46:05
- aeolidia
- New Member
- Registered: 2009-03-13
- Posts: 4
Re: After upgrading to 4.0.8, HTML code is displaying on the page
Okay, I think I’ve got it! Now I’m using this:
<txp:linklist form=“indexlink” category=“Main: Featured Rolodex” limit=“1” sort=“rand()”><txp:link /><br />
<txp:link_description escape=”“ /></txp:linklist>
Now to scurry off and change all my tags.
Thanks!
Offline
#5 2009-03-13 20:31:23
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: After upgrading to 4.0.8, HTML code is displaying on the page
category="Main: Featured Rolodex"
Nothing to do with your problem, but I find it hard to believe that this is working… the attribute’s value should be the category name, not the title, so it would need to be something like category="main-featured-rolodex"
.
Offline
#6 2009-03-13 20:51:50
- aeolidia
- New Member
- Registered: 2009-03-13
- Posts: 4
Re: After upgrading to 4.0.8, HTML code is displaying on the page
It is working! But I’ll look at correcting the tags so they don’t break in a future upgrade. Thanks for the tip.
Offline