Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#16 2007-02-21 21:46:53
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: How to a generic page/form to output a linklist of a category
My pleasure, glad it works :)
Offline
#17 2007-02-22 08:26:48
- azw
- Member
- Registered: 2007-01-29
- Posts: 279
Re: How to a generic page/form to output a linklist of a category
I have a related question.
I have a second linklist, which appears directly below the navigation, in the left column of every page on the site.
The page template contains this:
<txp:output_form form="left_column" />
Then the “left_column” form calls two other forms. One of the calls is this:
<txp:article_custom listform="linklist_column" category="causes" limit="1" />
Finally, the “linklist_column” form contains this:
<h4><txp:category name="CATEGORY_NAME" section="SECTION_NAME" link="1" title="1" /></h4>
<txp:asy_wondertag><txp:linklist category="CATEGORY_NAME" sort="linkname asc" class="list_plain" wraptag="ul" break="li" limit="10" /></txp:asy_wondertag>
That works, except that this line:
<h4><txp:category name="CATEGORY_NAME" section="SECTION_NAME" link="1" title="1" /></h4>
creates a link with a URL that ends with ?c=CATEGORY_NAME , like this:
WWW.SITE.COM/SECTION_NAME?c=CATEGORY_NAME
Is there a way to remove that? so the URL points to the section without the GET info, like this?
WWW.SITE.COM/SECTION_NAME/
This is a static page (sticky) adn there are no other pages in the section.
Last edited by azw (2007-02-22 08:32:01)
Offline
#18 2007-02-22 09:09:39
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: How to a generic page/form to output a linklist of a category
azw wrote:
Is there a way to remove that? so the URL points to the section without the GET info, like this?
WWW.SITE.COM/SECTION_NAME/
This is a static page (sticky) adn there are no other pages in the section.
Then why don’t you use <h4><txp:section="SECTION_NAME" link="1" title="1" /></h4>?
Offline
#19 2007-02-22 09:17:11
- azw
- Member
- Registered: 2007-01-29
- Posts: 279
Re: How to a generic page/form to output a linklist of a category
Oh, boy… that would be too easy! Ha! I can’t believe I didn’t think of that. It’s works!
Thanks, again, Els, for your help.
Offline