Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-05-21 00:15:38

guiguibonbon
Member
Registered: 2006-02-20
Posts: 296

add id to $thislink array

Could the id of links be added to the $thislink array created by linklist function?

I just used this with some <txp:php> tags; but i can imagine a few circumstances where this might be useful for plugins (rating links for instance). Since id is in the sql query anyway… it wouldn’t affect performance.

By the way, what is the tpt_link function for?

Offline

#2 2007-05-21 01:33:04

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: add id to $thislink array

Could the id of links be added to the $thislink array created by linklist function?

Fair enough. Can you test r2381 please?

By the way, what is the tpt_link function for?

It’s the tag handler for the ‘link’ tag. We can’t name the function ‘link’ because it clashes with a PHP library function.


Alex

Offline

#3 2007-05-23 14:47:34

guiguibonbon
Member
Registered: 2006-02-20
Posts: 296

Re: add id to $thislink array

thx, perfect. Thanks for the explanation too.

Offline

Board footer

Powered by FluxBB