Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-04-15 13:57:51
- Custom
- Member
- Registered: 2006-04-05
- Posts: 14
How do I make a Link page with navigation
I would like to list all the categories of links at the top of my linkpage, so people can click on one of the categories and automaticly scroll down to that specific category.
Example: http://www.handiklap.be/links.php (not TextPattern)
Using mem_glinklist, I already managed to get a sorted list of all the links, also look @ http://www.handiklap.be/links
The inpage-links for the list of categories would have to be <.a href=”#catid”>CatTitle<./a>
while the categories introducting all the links lower on the page should have <.a name=“catid”>CatTitle<./a>
Any ideas?
Last edited by Custom (2006-04-15 14:00:14)
Offline
#2 2006-04-15 20:44:33
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: How do I make a Link page with navigation
The best place for a question like this would be the plugin thread, so if my idea below doesn’t work you’d better go there.
I haven’t tried this (I don’t even use the plugin), but looking at the documentation I suspect it can be done with the plugin.
If you use
<txp:mem_glinklist catform="yourform" />
to output the linklist grouped by category, and in ‘yourform’ is something like
<a name="<txp:mem_cat_id />"></a><txp:mem_cat_title />
you might be able to create a linked category list with
<txp:mem_categories form="cat_list" type="link" />
where ‘cat_list’ contains something like
<a href="#<txp:mem_cat_id />"><txp:mem_cat_title /></a>
Offline
#3 2006-04-16 12:20:24
- Custom
- Member
- Registered: 2006-04-05
- Posts: 14
Re: How do I make a Link page with navigation
Thanks again for your fast responds.
You’ve helped me by showing how to combine html and the textile/plugin codes, as I thought i could only combine those by arguments.
This is my final code:
Page
————————————————————————————————————————————————————-
<txp:mem_categories form="cat_list" type="link" /><txp:mem_glinklist catform="catform" form="links" sort="linksort" class="linklist" />
Forms
————————————————————————————————————————————————————-
1) cat_list
<a href="#<txp:mem_cat_id />"><txp:mem_cat_title /></a>
2) catform
<a name="<txp:mem_cat_id />"><txp:mem_cat_crumbtrail /></a>
3) links
<p><txp:link /><br /><txp:link_description /></p>
Offline
#4 2006-04-16 12:42:07
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: How do I make a Link page with navigation
Great ;) You can style it of course by giving the <a>
in cat_list a class, or by putting it in an unordered list (break=“li” and wraptag=“ul” in <txp:mem_categories />
).
Offline