Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-04-07 19:11:33
- wii
- Member
- Registered: 2005-05-08
- Posts: 77
Sitemap for Textpattern
How can I create a sitemap, where new links are automatically added to the page ? When I say sitemap, I mean a page where I show the structure of my site, not google sitemap.
Thanks
Offline
Re: Sitemap for Textpattern
I’ve done it this way before.
TXP Builders – finely-crafted code, design and txp
Online
Re: Sitemap for Textpattern
Try this post too
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#4 2007-04-08 20:27:00
- wii
- Member
- Registered: 2005-05-08
- Posts: 77
Re: Sitemap for Textpattern
Ok, I did it like this:
1. Created a form called Sitemap:
<li><txp:permlink><txp:title /></txp:permlink> (<txp:section />)</li>
2. Created a new template called Sitemap, which I added this:
<ul><txp:article_custom limit=99999 form=“sitemap” sortdir=“asc” sortby=“section” /></ul>
It works fine, but I have a few questions:
1. Can I edit the Sitemap to only show the sections I specify and in the order I want ?
2. Can I edit the Sitemap to show the articles in order of the date and time they were posted ?
Thanks
Last edited by wii (2007-04-08 21:09:52)
Offline
Re: Sitemap for Textpattern
1. might be a problem depending upon what you mean by “the order I want”. The txp:if_different
used in both the links above allows you to group your entries in headings, either by section or by date or by author …
2. Instead of sortby and sortdir (which are deprecated) use the newer sort="Posted desc"
. You can also use a combination of sort criteria, for instance, first by section then by posted date, e.g. <txp:article_custom sort="Section asc, Posted desc" />
Check the Textbook entry on txp:article_custom for more details.
TXP Builders – finely-crafted code, design and txp
Online
#6 2007-04-08 21:28:33
- wii
- Member
- Registered: 2005-05-08
- Posts: 77
Re: Sitemap for Textpattern
Got it thanks, works perfectly.
Offline
#7 2007-12-13 14:28:01
- vickilh
- Member
- Registered: 2007-10-30
- Posts: 96
Re: Sitemap for Textpattern
Thanks! I’ve set that up. But … (I’m new to Texpattern) .. how do I get the sitemap to display? I’ve set up the form, template, and section. If I go to the URL for that section [<site>/txp/?s=Sitemap], nothing shows up. — I know I’m missing something, just don’t know what.
Thanks!! Vicki
Offline
#8 2007-12-13 20:41:50
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Sitemap for Textpattern
The same question was asked here, so please post replies to Vicki in that other thread.
Offline
Pages: 1