Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
custom fields for links
Hi, awesome Textpattern people,
I want to be able to add 1 or 2 custom fields or “additional values” to the links I store in the link panel.
Apart from dumping everything in the description field and parsing it at runtime, is there a way, a plugin to achieve that?
I’ve done some research in the forum but nothing is showing up…
Thanks for any idea :)
Offline
Re: custom fields for links
Hi Aleth,
I have a simple plugin called jcr_link_custom which adds one custom field to the links panel (there are similar plugins for the images and files pane too).
You can easily expand it to add more than one extra field if you want by editing the code. Should you need any pointers on how to do that (which I suspect you won’t), it’s based on “wet profile” (link on my github page) which adds two fields to the author’s pane. Just transfer that principle back to my plugin…
TXP Builders – finely-crafted code, design and txp
Offline
Re: custom fields for links
Awesome !!!
Thanks so much Jakob :)
Offline
Re: custom fields for links
I’m using smd_if on complete links in custom fields. The plugin analyzes for reoccurring strings like “facebook” and when true, then automatically showing a respective link text for the link surrounding it.
Example: <a href="https://www.facebook.com/jayrope2">Facebook.</a>
Might come in handy.
Last edited by jayrope (2018-04-23 22:09:33)
A hole turned upside down is a dome, when there’s also gravity.
Offline
Pages: 1