Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-04-06 20:41:15
- Custom
- Member
- Registered: 2006-04-05
- Posts: 14
How do I make a Link page
I would love to have a page showing all the links and there description sorted by category.
If possible, the categories displayed at top for quick navigation.
Is this possible?
Last edited by Custom (2006-04-06 21:19:00)
Offline
#2 2006-04-06 21:35:14
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: How do I make a Link page
txp:linklist or mem_glinklist? And for the navigation <txp:category_list type="link" />
.
Offline
#3 2006-04-06 21:59:50
- Custom
- Member
- Registered: 2006-04-05
- Posts: 14
Re: How do I make a Link page
I am a total beginner, so pardon me for my noobly questions.
I made a new Section named “links” what seems to allow me to go to mysite.com/links/ without 404’s.
Next, I made a form named “links” inculding the <txp:mem_glinklist sort="linksort" />
tag, but the page mysite.com/links/ is still blank.
(edited to show code. – Els)
Last edited by els (2006-04-06 22:04:26)
Offline
#4 2006-04-06 22:13:05
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: How do I make a Link page
There is a default links form named ‘Links’. It contains this code:
<code><p><txp:link /><br />
<txp:link_description /></p></code>
which is about what you want I suppose.
Now on the page template that is use by your links section you call this form like this:
<txp:linklist form="Links" />
This will give you a list of all links.
You can handcode a linklist sorted by category like this:
<code><h3>Cats</h3>
<txp:linklist form=“Links” category=“cats” />
<h3>Dogs</h3>
<txp:linklist form=“Links” category=“dogs” />
etcetera…
</code>
The mem_glinklist plugin will do this for you, you’ll have to read the plugin help to see how to use it because I’m not familiar with it. The <txp:mem_glinklist />
tag should be on the page template, like the <txp:linklist />
tag.
The navigation at the top of your page can be something like:
<txp:category_list type="link" wraptag="ul" break="li" />
Last edited by els (2006-04-06 22:15:03)
Offline
#5 2006-04-06 22:22:08
- Custom
- Member
- Registered: 2006-04-05
- Posts: 14
Re: How do I make a Link page
Thx alot! Works perfect …
Offline
Pages: 1