Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
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
Offline
#4 2008-10-20 21:19:51
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Offline
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
Pages: 1