Content last modified Sunday 30 November 2008
hop to #bottom
Categories:
Author:
Current version:
0.1
About It:
Get it:
Rate it:
  • Helpful?
  • 0 Yes
  • 0 No
Flag it:
Contact Reason [ ? ]

bas_links_per_article

This plugin gives you two more txp-tags:

  • txp:bas_links_per_article
  • txp:bas_if_links_per_article

txp:bas_links_per_article

This tag accepts the following attributes:

  • form     This attribute defines a form for the links output. If not set, the form Links will be used.
  • field     This attribute defines the used custom field. Must be set, unless you changed the $def_field in plugin code (in both functions!). If you change $def_field you don’t need to set field in the <txp:tag>. Atrribute field in the tag overrides the $def_field.

txp:bas_if_links_per_article

This conditional tag can be used to add some text or whatever to the links list. Accepts field, read above.

Example

Add this in your presentation code:
<txp:bas_if_links_per_article field="2">
Read More
<txp:bas_links_per_article field="2" />
</txp:bas_if_links_per_article field="2">

For article Textpattern you saved in custom field 2 “txp-ressource”.
In the link category txp-ressource you stored three links:

  • textpattern.com
  • forum.textpattern.com
  • textpattern.net

This example will put out the three links using the “Links”-form, when showing the article Textpattern.

Article Request Count:
Initially released:
2005-03-14
Posted here:
14 Mar 2005
Article modified:
14 Mar 2005

You may want to leave your comments/questions at the Forum thread for quicker feedback. Otherwise, comment away:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site. Get a Gravatar.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
TxP · TxD · GG