Textpattern Forum

You are not logged in. Register | Login | Help

#71 2006-03-13 19:07:45

Etz Haim
Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

Re: [plugin] [ORPHAN] zem_link

Could you please add support for the accesskey HTML attribute? Or, send me a mail to send you my modified version of zem_link that supports it?

This is an important accessibility feature. To learn more about accesskey, make sure you meet Bill and read this

Offline

#72 2006-03-13 20:18:55

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

Re: [plugin] [ORPHAN] zem_link

v 0.5, done.

I’ve also added the pending list mode attributes section, category, and author. Though no-one ever really requested them I enjoy to have one single authority of link creation for sites I build. zem_link to rule them all, until the final release of either txp:// or txp-Textile.

Online

#73 2006-05-07 22:32:05

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

Re: [plugin] [ORPHAN] zem_link

Hi Wet,

I’m having a lingering problem with zem_link. When I try to create a a link relative to the Textpattern root using <txp:zem_link href="foo/">bar</txp:zem_link>, I end up getting a link that’s relative to the current page instead. This was a problem with Zem’s v0.3 as well. A fix for this would help me a lot, since it would fix this problem.

Also, is it possible for you to update the listing for zem_link on Textpattern Resources? If not, how about releasing it as wet_link or zem_link_reborn?

Last edited by Logoleptic (2006-05-07 22:35:31)


“Never attribute to malice that which can be adequately explained by stupidity.”

Hanlon’s Razor

Offline

#74 2006-05-08 04:22:14

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

Re: [plugin] [ORPHAN] zem_link

Logoleptic wrote:

When I try to create a a link relative to the Textpattern root using <txp:zem_link href="foo/">bar</txp:zem_link>, I end up getting a link that’s relative to the current page instead.

I will look into it and amend it when possible. At least according to the documentation, it should work as you expect.

Online

#75 2006-05-08 06:06:42

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

Re: [plugin] [ORPHAN] zem_link

Thanks, Wet.


“Never attribute to malice that which can be adequately explained by stupidity.”

Hanlon’s Razor

Offline

#76 2006-05-08 21:07:50

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

Re: [plugin] [ORPHAN] zem_link

Online

#77 2006-05-09 12:25:46

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

Re: [plugin] [ORPHAN] zem_link

Rock and roll. You just made my week. :-)


“Never attribute to malice that which can be adequately explained by stupidity.”

Hanlon’s Razor

Offline

#78 2006-08-19 19:09:50

jrphelps
Member
From: Fort Worth, TX
Registered: 2006-07-13
Posts: 30

Re: [plugin] [ORPHAN] zem_link

Sorry to bump an old thread, but I want to use a custom field for inputting a link ID for a form like this:
<txp:zem_link linkid="<txp:custom_field name="fieldname"/>"/>

Any way to achieve this?

Last edited by jrphelps (2006-08-19 19:10:36)

Offline

#79 2006-08-19 21:30:31

Mary
Sock Enthusiast
From: Canada
Registered: 2004-06-27
Posts: 6,235

Re: [plugin] [ORPHAN] zem_link

In your article form:

<txp:php>
global $thisarticle;

echo zem_link(array(
	linkid => custom_field(array('name' => 'fieldname'))
));
</txp:php>

:)


My email address has changed recently. If you need to contact me, use the forum contact form.

Offline

#80 2006-08-20 02:17:34

jrphelps
Member
From: Fort Worth, TX
Registered: 2006-07-13
Posts: 30

Re: [plugin] [ORPHAN] zem_link

Mary, that worked for outputting the anchor tag, but the anchor text does not output automatically with this code. If I use <txp:zem_link linkid="5" /> it outputs the name of the link as the linked text. I tried looking at the code, but I couldn’t see what was making the difference.

Offline

Board footer

Powered by FluxBB