Step 1: Download the plugins here. gg_linkxfn_v1.0.txt (admin side) gg_linklistxfn_v1.0.txt Since Textpattern is a PHP based CMS, the plugins are written in PHP as well. But these text plugin files don’t have any plain PHP code in it. The code is actually compiled into a chunk of base64-encoded text, to allow for easy installation and minimize corruption problems.

Step 2: Go to your textpattern admin interface usually yourdomainname.com/textpattern/index.php assuming you just did the simple basic installation. Here’s what you should see now. start

Step 3: Now click on the admin tab admin

Step 4: Click on plugins tab plugins

Step 5: Now in the textarea beside “Install plugin”, copy paste the text from the gg_linkxfn_v1.0.txt (let’s install the admin side plugin first) and click “Upload”. Textpattern will decode the text for you and spit out the plain PHP code, and then ask you whether you are ready to install it. install

Step 6: Click Install. Now you should be back to the list of plugins under the plugin tab. On the gg_linkxfn plugin row, click on “No”(under the “active” column) to change it to “Yes”, to enable the plugin. enable

Step 7: That’s it you are done! Now to see the plugin in action. Click on the content tab. You should see a new tab named “linkxfn” under the sub tabs. Click on the new tab. linkxfn

Step 8: There ya go! All set. Now you can choose your options from the fields, build the relation tag and see it in the “xfn” text area. Hit Save and you just have saved the values that will be populated in the “rel” attribute when you display the links using gg_linklistxfn plugin.

Step 9: Now repeat steps 1 to 7 to install and enable the gg_linklistxfn plugin.

Step 10: Here’s how you use it in your forms or pages.

<txp:if_category>
<txp:gg_linklistxfn form="waw_links" columns="1"
columnwraptag="ul" columnclass="alllinks" listwraptag=""
listclass="" headless="1" headwraptag="h3" argname="c"
category="Friends-and-Colleagues" />
<txp:else />
<txp:gg_linklistxfn form="waw_links" columns="1"
columnwraptag="ul" columnclass="alllinks" listwraptag=""
listclass="" headwraptag="h3" headless="1"
category="Friends-and-Colleagues"/>
</txp:if_category>

Since this plugin is an extension of Manfre’s mem_glinklist plugin, you can just read how to configure it from his help page. There are no new parameters to add or nothing different about how you use it.

Step 11. Here’s a demo. Right click on any link on blogroll there and click on properties. You should a relation name-value pair. Check out the screenshot below. properties

UPDATE: Step above will not work anymore as this site has been upgraded since the time this plugin was written. It runs on Wordpress now and hence doesn’t support any textpattern plugins.

Step 12. Most important of all…..ENJOY!

2 Responses to “How to install and use XFN plugin for textpattern”

  1. fangonk Says:

    Hey man, is there anyway you could repost the plugin? The link in step one is dead and I have killer use for this plugin.

  2. girish Says:

    Sorry about the bad link. It’s been fixed now.

Trackbacks/Pingbacks

Leave a Reply