Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2009-06-30 11:11:08
- mlarino
- Member
- Registered: 2007-06-29
- Posts: 367
Re: sorting articles
Ok, seems to work fine. Thanks
But I found out my logic is not working.
In default I have this:
<txp:if_section name="default">
<txp:chh_article limit="14" listform="fichas" category="madrid" class="published"/>
</txp:if_section>
<txp:if_section name="sevilla">
<txp:chh_article limit="14" listform="fichas" category="sevilla" class="published"/>
</txp:if_section>
The “sevilla section” is using the “default page”
but when I type the adress www.website.com/sevilla
The articles dont show up.
Am I doing something wrong?
Last edited by mlarino (2009-06-30 11:12:07)
Offline
#14 2009-06-30 18:29:26
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: sorting articles
Did you check the tag trace of the page that doesn’t display your articles? You can post it here if you want so we can have a look.
Offline
Re: sorting articles
How about trying it this way:
<txp:if_section name="sevilla">
<txp:chh_article limit="14" listform="fichas" section="sevilla" category="sevilla" class="published"/>
</txp:if_section>
(The difference is section=“sevilla” has been added)
Offline
#16 2009-07-02 21:00:53
- mlarino
- Member
- Registered: 2007-06-29
- Posts: 367
Re: sorting articles
Thanks!
I will give that a try.
That will work to display all the articles from sevilla.
What if I have a page dedicated to Restaurants and section “Restaurants”, will I be able to publish an article in the Restaurants section and Sevilla category, and use “Ifs” in a page to display Sevilla restaurants, Madrid Restaurants etc…?
Last edited by mlarino (2009-07-02 22:03:34)
Offline
#17 2009-07-06 07:34:04
- mlarino
- Member
- Registered: 2007-06-29
- Posts: 367
Re: sorting articles
For each ctiy and each section (restaurant, shopping…) I will have to create a section, right??
sections: sevilla-restaurants, sevilla-shopping, barcelona-restaurant, barcelona-shopping…. etc etc etc….
Offline