Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-12-09 23:24:59

amordecosmos
Plugin Author
From: London (Hometown: Vancouver)
Registered: 2004-08-03
Posts: 114
Website

Store a Textile URL in a custom field

I want to have a “related link” in my sidebar and store the URL in Textile form in a custom field.

If I put the following in my form:

<h3>Related Link</h3>
<a href="<txp:custom_field name="RelatedLink" />">Site</a>

it works correctly. But the label is a generic Link

I would rather have put

"The Philadelphia Story":http://www.imdb.com/title/tt0032904/ in my custom field and

<h3>Related Link</h3>
<txp:custom_field name="RelatedLink" />

in my form but this will show up on the page as: "The Philadelphia Story":http://www.imdb.com/title/tt0032904/

Any love? (rei_custom_field doesn’t work either, btw)

- AdC

Offline

#2 2006-12-09 23:56:13

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: Store a Textile URL in a custom field

upm_textile: Parse any text with Textile.

Offline

#3 2006-12-09 23:59:13

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Store a Textile URL in a custom field

Use two custom fields?

<a href="<txp:custom_field name="RelatedLink" />"><txp:custom_field name="RelatedLinkText" /></a>

Offline

#4 2006-12-10 00:18:49

amordecosmos
Plugin Author
From: London (Hometown: Vancouver)
Registered: 2004-08-03
Posts: 114
Website

Re: Store a Textile URL in a custom field

Well, wow.

Thank you, Wet, for showing that plug-in, it worked great. (And, implicitly, thank you Mary for the plug-in.)

Els, there is a large dent in my forehead where I slapped it in a “D’oh”-like fashion. Thanks for that solution, too.

Offline

Board footer

Powered by FluxBB