Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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 :)

(Alphabetical Tag Listing)

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

#4 2007-10-11 00:14:16

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Hyperlinking the Section Title

Simple:

<txp:section link="1" name="jacks-blog">From Jack’s Blog</txp:section>

Cheers!

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

#6 2007-10-11 02:29:18

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: Hyperlinking the Section Title

FYI, it seems that link="1" is optional when txp:section is used a container tag, according this post


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#7 2007-10-11 03:25:31

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: Hyperlinking the Section Title

Offline

#8 2007-10-11 04:17:26

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Hyperlinking the Section Title

nice one iblastoff :-)

Offline

Board footer

Powered by FluxBB