Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
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
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
Pages: 1