Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-05-16 20:09:13

wet
Developer
From: Lenzing, Austria
Registered: 2005-06-06
Posts: 3,265
Website

wet_linkinfo: Extract a managed link's properties

wet_linkinfo is a plugin which takes a link id number and returns one of these assigned properties:

  • date
  • category
  • url
  • linkname
  • linksort
  • description

Documentation and download.

Offline

#2 2007-05-21 04:32:29

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

Re: wet_linkinfo: Extract a managed link's properties

Hi Robert, sorry it took me awhile to get a look at this. Am I correct in thinking you’d need to use this twice or more to get a link on the page?

<a href="<txp:wet_linkinfo id="3" type="url" />" title="<txp:wet_linkinfo id="3" type="description" escape="html" />">
  <txp:wet_linkinfo id="3" type="linkname" escape="html" />
</a>

Offline

#3 2007-05-21 06:09:56

wet
Developer
From: Lenzing, Austria
Registered: 2005-06-06
Posts: 3,265
Website

Re: wet_linkinfo: Extract a managed link's properties

Looks terrible, uh? I might have to add a form capability…

Offline

#4 2007-05-21 15:27:01

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

Re: wet_linkinfo: Extract a managed link's properties

I haven’t looked closely at the code, but it also seems like queries could add up quickly if each instance of the tag produces one query.

I remember ajw_clean_feeds having an attribute switch that could output either an URL or an autodiscovery link, depending on the attribute value. Perhaps something like that could be used here? Of course, upm_image incorporates both attribute switches and form capability. I guess there’s several ways to solve this.

Offline

#5 2007-05-25 17:50:35

wet
Developer
From: Lenzing, Austria
Registered: 2005-06-06
Posts: 3,265
Website

Re: wet_linkinfo: Extract a managed link's properties

Offline

Board footer

Powered by FluxBB