Content last modified Monday 3 September 2018
hop to #bottom
Categories:
Author:
Current version:
0.1
About It:
Get it:
Rate it:
  • Helpful?
  • 0 Yes
  • 1 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

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:

Archived [?]: Download link broken

Initially released:
2005-03-14
Posted here:
14 Mar 2005

You know you want to visit the Archives.
Published with Textpattern