Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-09-23 17:14:52

nabrown78
Member
From: Northampton, MA, USA
Registered: 2006-10-04
Posts: 294
Website

Can I get link_id with TXP 4.0.8?

I blithely tried to use <txp:link_id /> in a site, only to realize it was added in 4.2…Is there anyway to output the ID in 4.0.8? I just don’t have the time to upgrade the site right now.

Thanks!

Offline

#2 2009-09-23 17:36:54

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Can I get link_id with TXP 4.0.8?

Try copying the link_id() function in publish/taghandlers.php from Txp 4.2.0 to your 4.0.8 installation.


Code is topiary

Offline

#3 2009-09-24 01:53:21

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: Can I get link_id with TXP 4.0.8?

This will plugin and might be quicker than digging around in taghandlers.

# Name: ras_link_id v0.1 
# Type: Client side plugin
# ras_link_id
# Author: raas
# URL: http://textcastle.com/
# Recommended load order: 5

# .....................................................................
# This is a plugin for Textpattern - http://textpattern.com/
# To install: textpattern > admin > plugins
# Paste the following text into the 'Install plugin' box:
# .....................................................................

YToxMDp7czo0OiJuYW1lIjtzOjExOiJyYXNfbGlua19pZCI7czo2OiJhdXRob3IiO3M6NDoi
cmFhcyI7czoxMDoiYXV0aG9yX3VyaSI7czoyMjoiaHR0cDovL3RleHRjYXN0bGUuY29tLyI7
czo3OiJ2ZXJzaW9uIjtzOjM6IjAuMSI7czoxMToiZGVzY3JpcHRpb24iO3M6MTE6InJhc19s
aW5rX2lkIjtzOjQ6ImNvZGUiO3M6MTc2OiIvLyAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tDQoJZnVuY3Rpb24gcmFzX2xp
bmtfaWQoKQ0KCXsNCiAgICAgIAlnbG9iYWwgJHRoaXNsaW5rOw0KICAgICAJYXNzZXJ0X2xp
bmsoKTsNCgkJDQogCQlyZXR1cm4gJHRoaXNsaW5rWydpZCddOw0KfSI7czo0OiJ0eXBlIjtz
OjE6IjAiO3M6NToib3JkZXIiO3M6MToiNSI7czo0OiJoZWxwIjtzOjY6Iipub25lKiI7czoz
OiJtZDUiO3M6MzI6IjBlZDljYTkyZDZkNTFkNTQwOWI3ZDFmNzkxOWY2ZmYyIjt9

Offline

#4 2009-09-24 13:30:16

nabrown78
Member
From: Northampton, MA, USA
Registered: 2006-10-04
Posts: 294
Website

Re: Can I get link_id with TXP 4.0.8?

Oh my gosh – sweet. Thanks so much Rick! Just what I needed.

Offline

Board footer

Powered by FluxBB