Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-10-20 08:02:09

daver89
Member
From: Walsall, UK
Registered: 2007-12-02
Posts: 22
Website

pull a single link into a page

Hello,

I am looking for more control over links.

I currently have something like the following in my page template:-

<a href=“http://www.bla.com”><img src=“link to image” /></a>.

what i want to do is have the link managed in the cms but there doesn’t seem to be a <txp:link id=“1” /> type prefix.

any help is much appreciated.

dave.

Offline

#2 2008-10-20 15:24:52

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: pull a single link into a page

Create a category in the Categories tab then attach that category to the link in the Links tab. Use the <txp:linklist category="whatever" form="newForm" /> tag to call the link category.

In order to use an image anchor you will need to create a “link type” form similar to the example here replacing the <txp:link_name /> tag with your image tag but that would only work for a single link. If you have several links replace the <txp:link_name /> tag with the <txp:link_description /> tag instead and place the <txp:image /> tag with the appropriate “id” attribute into the description box for each link. That does of course mean that you can’t have descriptions but hey, you can’t have everything. ;)

Last edited by thebombsite (2008-10-20 16:05:05)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#3 2008-10-20 16:30:30

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: pull a single link into a page

daver89 wrote:

there doesn’t seem to be a <txp:link id=“1” /> type prefix.

zem_link can do that.

Offline

#4 2008-10-20 21:19:51

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: pull a single link into a page

Els wrote:

zem_link can do that.

adi_link can as well.

Offline

#5 2008-10-20 21:25:13

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: pull a single link into a page

Plug-in addiction starting to show again. ;)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

Board footer

Powered by FluxBB