Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
[plugin] [ORPHAN] bas_links_per_article
This plugin connects individual article to link categories.
<strong>Download:</strong><a href=‘http://samisdat.org/files/plug/bas_links_per_article.php’>bas_links_per_article.php</a>
This plugin gives you two more txp-tags:
<ul>
<li>txp:bas_links_per_article</li>
<li>txp:bas_if_links_per_article></txp:bas_if_links_per_article</li>
</ul>
<strong>txp:bas_links_per_article</strong>
This tag accepts the following attributes:
<ul>
<li>form</li>
This attribute defines a form for the links output.
If not set, the form Links will be used.
<li> field</li>
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.
<strong>txp:bas_if_links_per_article</strong>
This conditional tag can be used to add some text or whatever to the links list. Accepts field, read above.
<strong>Example</strong>
Add this in your presentation code:
<pre>
<txp:bas_if_links_per_article field=“2”>
<h2>Read more </h2>
<txp:bas_links_per_article field=“2” />
</txp:bas_if_links_per_article field=“2”>
</pre>
For article Textpattern you saved in custom field 2 “txp-ressource”.
In the link category txp-ressource you stored three links:
<ul>
<li>textpattern.com</li>
<li>forum.textpattern.com</li>
<li>textpattern.net</li>
</ul>
This example will put out the three links using the “Links”-form, when showing the article Textpattern.
Last edited by Bastian (2005-03-14 19:46:43)
Offline
Re: [plugin] [ORPHAN] bas_links_per_article
where do I download this?
edit
hehe, nevermind
Works perfectly. Thanks :)
Last edited by nimnix (2005-03-14 20:17:45)
textpattern.org :: find and share Textpattern resources
textpattern.net :: TextBook – Textpattern wiki
Offline
#3 2006-02-15 03:25:57
- neomatrix
- Member
- From: Sofia, Bulgaria
- Registered: 2005-08-21
- Posts: 23
Re: [plugin] [ORPHAN] bas_links_per_article
The download url doesn’t work. Could you fix it please, or if you know similar plug-in….
Offline
Pages: 1