Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-05-29 13:16:50

progre55
Member
Registered: 2006-05-02
Posts: 668

Custom Field Characters

Group:

I am using Gerhrad’s custom field plug in. Have done so with most of my projects and do not believe that this is the issue but wanted full disclosure.

I am trying to store a hyperlink (the first part) in the field. Unfortunately, it is doing the following:

It takes this: <a href="http://www.yahoo.com">

and changes it to: &lt;a href=&quot;http://www.yahoo.com&quot;&gt;

Any help would be greatly appreciated.

progre55

Last edited by progre55 (2012-05-29 13:17:30)

Offline

#2 2012-05-29 13:23:37

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,795
Website GitHub

Re: Custom Field Characters

progre55

If you mean it’s displaying the encoded characters when you output the value using <txp:custom_field /> then you need to add the escape="" attribute.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2012-05-29 13:34:39

progre55
Member
Registered: 2006-05-02
Posts: 668

Re: Custom Field Characters

Bloke:

That is what I mean — now I feel really dumb —- if I had taken a minute to review the custom field attributed before posting — thanks for the quick response —-

Hope all is well on your side of the pond.

progre55

Offline

Board footer

Powered by FluxBB