Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-10-10 22:20:26
- dreamer
- Member
- Registered: 2007-06-08
- Posts: 242
Hyperlinking the Section Title
I am trying to hyperlink some words from my sidebar to a particular section.
For example, on my sidebar here , you’ll see the section, From Jack’s Blog.
I want those words to be hyperlinked to the appropriate section. How would I achieve that using the txp:section tags?
This is the code I have now;
<h3><img src=”/txp/images/fromblog.gif” /><txp:section title=1 link=1 name=“jacks-blog” />From Jack’s Blog</a></h3>
I tried using txp:permlinks tag but that didn’t work either, unless I did it incorrectly?
Thanks!
Offline
#2 2007-10-10 22:45:02
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Hyperlinking the Section Title
<txp:section title="1" link="1" name="jacks-blog" />
will give you the hyperlinked section title :)
Offline
#3 2007-10-10 22:58:38
- dreamer
- Member
- Registered: 2007-06-08
- Posts: 242
Re: Hyperlinking the Section Title
Right- I understand that :) But…
I want more than just the section title to be hyperlinked. In this situation, I wanted, From Jack’s Blog
But in other instances, I want more than just the section title to be hyperlinked. I may not even want the exact section title to be hyperlinked at all and would just want whatever words I so choose to be hotlinked. Perhaps, “super-fragilistic-expy-alerdowshous” is what I want.
In this scenario, what do I do? Do I just normal urls, ie; http://mydomain.com/mysection if there are no appropriate txp tags for this?
Last edited by dreamer (2007-10-10 23:01:54)
Offline
Offline
#5 2007-10-11 00:26:50
- dreamer
- Member
- Registered: 2007-06-08
- Posts: 242
Re: Hyperlinking the Section Title
awesome. it works. I thought txp:section tag was self-closing so I was unaware that you could add </section> at the end.
Offline
Re: Hyperlinking the Section Title
FYI, it seems that link="1"
is optional when txp:section
is used a container tag, according this post
Offline
Re: Hyperlinking the Section Title
Offline
Offline
Pages: 1