Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-07-03 14:49:23
- critx
- Member
- Registered: 2007-06-27
- Posts: 17
article-navigation (linklist) for a certain section
Hello!
I’ve built a main-navigation with sections – now I want an extra-navigation from articles in the selected section (I don’t work with categories).
If you open a certain section, you should get shown a list with all articles in this section (except the current shown article).
How can I do that?
And: how can i specify an article to get shown, if the assigned section is opened?
(my english is not the best -> sorry about that!)
Thanks for reading.
Last edited by critx (2007-07-03 14:50:32)
Offline
#2 2007-07-03 21:12:17
- critx
- Member
- Registered: 2007-06-27
- Posts: 17
Re: article-navigation (linklist) for a certain section
No idea?
Offline
#3 2007-07-04 10:11:55
- jadehouse
- Member
- Registered: 2007-06-26
- Posts: 75
Re: article-navigation (linklist) for a certain section
Try to re-write your question so it’s easier to understand… I’m sure some of these awesome members will help you out then!
Offline
Re: article-navigation (linklist) for a certain section
You could use the <txp:article_custom section="sectionName" form="formName" />
tag. The new form would simply contain a “permlink” title. You then need to use the <txp:if_section>
tag to create a list of options so:-
<txp_if section name="lightbulbs">
<txp:article_custom section="lightbulbs" form="formName" offset="1" limit="20" />
</txp:if_section>
<txp_if section name="plugs">
<txp:article_custom section="plugs" form="formName" offset="1" limit="20" />
</txp:if_section>
Last edited by thebombsite (2007-07-04 10:47:23)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#5 2007-07-04 19:11:34
- critx
- Member
- Registered: 2007-06-27
- Posts: 17
Re: article-navigation (linklist) for a certain section
thanks!
so how could i choose a standardly showed article for a certain section?
Last edited by critx (2007-07-04 19:56:05)
Offline
Re: article-navigation (linklist) for a certain section
If the article you want to show will always be the same then save it as a “sticky” article and use something like <txp:article status="sticky" form="formName" />
where you want it to appear then use the other tag I showed you above to call the list of titles. (You won’t need to use the “offset” attribute.)
The standard “article” tag is section-sensitive so it will only show a sticky article from the section you are viewing.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline