Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2010-05-17 12:15:15
- Qwest
- Member
- From: London, UK
- Registered: 2007-01-24
- Posts: 112
Resource link list
Hi,
Is there a way to add a list of links which relate to a each article as they go? Maybe a related list of links, or further reading? I would you my excerpt field, but that’s being used already.
Is there a plugin or feature that I could use to append a set of links after each of my articles?
Thanks
Offline
Re: Resource link list
Hi Quest
related_articles should do what you need.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#3 2010-05-17 13:17:50
- Qwest
- Member
- From: London, UK
- Registered: 2007-01-24
- Posts: 112
Re: Resource link list
Thanks Colak, however that seems to be for articles within the textpattern installation. I’m talking about other articles on the internet, so like a list of external links which I would define.
Ive got no problem doing this in HTML, but would like somewhere like a custom field so I can place it in the content sidebar.
Offline
Re: Resource link list
If you mean external www links, you could use a custom_field to hold either the link category or the individual link id numbers.
The category is easier as txp:linklist accepts a category attribute. You need to add this to your page template. For each article you then need to make a link category in the category pane, then create your links in the Content > Links pane, and assign them to that category. Any links in that category are then appended automatically to your article.
The other method using a series of txp link ID numbers in your custom_field, e.g. 3,7,9
is more complex. For this you need smd_each or rah_repeat, both of which allow you to break apart a comma-separated list and do something with each item. You then use this to construct your links using txp’s various link tags. Again, you create the actual links in the Content > Links pane.
If you want to do it manually, also check adi_link.
Last edited by jakob (2010-05-17 13:28:28)
TXP Builders – finely-crafted code, design and txp
Offline
Re: Resource link list
Or there’s smd_tags which allows you to tag links (and images, files, articles) with arbitrary names that you can then link to other things (such as other articles) with smd_related_tags
.
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
#6 2010-05-17 19:51:16
- Qwest
- Member
- From: London, UK
- Registered: 2007-01-24
- Posts: 112
Re: Resource link list
hmm, using the actual TXP link list seems a bit excessive for what I’m trying to do. Basically, once finished writing an article, I’d like to add a couple of URL’s used at the bottom, like further reading elsewhere. Reference links etc.
I was hoping there would be a plugin that would create a custom_field as a multi-line text box, which would allow me to list the links.
Offline
Re: Resource link list
I was hoping there would be a plugin that would create a custom_field as a multi-line text box, which would allow me to list the links.
There is: glz_custom_fields. It’s not free but well worth the money. Note however that custom_fields have a 255 character limit unless you modify the database.
BTW: if you want to write your links as textile, you can use upm_textile to parse the custom_field as textile, e.g.:
<txp:upm_textile><txp:custom_field name="article_links" /></txp:upm_textile>
TXP Builders – finely-crafted code, design and txp
Offline
Re: Resource link list
Qwest wrote:
Basically, once finished writing an article, I’d like to add a couple of URL’s used at the bottom, like further reading elsewhere. Reference links etc.
I don’t get why you need a custom field for this then. There seems little point wasting a custom field (which as jakob mentions is size-limited) or creating TXP’s links because, as you say, it’s overkill for one-off links. You should probably just add the links directly to the article body:
h3. Further reading
"Life, The Universe and Everything":http://douglasadams.com/
"Vogon training simulator":http//6of3.com/vogontraining/
And of course references can be handled in Textile with the [1]
and fn1.
syntax. Perhaps I’ve misunderstood your motivation, though.
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
#9 2010-05-21 12:28:35
- Qwest
- Member
- From: London, UK
- Registered: 2007-01-24
- Posts: 112
Re: Resource link list
Thanks Bloke – and I agree, adding to the body would be ideal, however I want the links to appear in the sidebar, so it’s no good appending them to the bottom of the article.
Jakob, thanks for the tip for GLZ_custom_fields. I was unaware of the 255 character limit though.
I think I’ll re-purpose the <txp: excerpt> field.
Offline
Pages: 1