Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2010-11-12 08:04:53
- Cyprian
- New Member
- Registered: 2010-09-13
- Posts: 5
Script to call articles
Hi,
I couldn’t find my anserw.
This is my site:
cypriangwozdz.com
I would like to display on the first page only one article from category “Idea”, on journal page whole list of articles from categories “wow” and “idea” and also help to add proper search tags as well. As you can see when I click on header of any article I doesn’t work as well…
Please help me to find right tags :)
~Cyprian
Offline
#2 2010-11-12 08:13:35
- Cyprian
- New Member
- Registered: 2010-09-13
- Posts: 5
Re: Script to call articles
Right now, my tags look like this:
<txp:if_search>
<h1>Search Results</h1></txp:if_search>
<txp:if_article_list>
<txp:article limit=“1” pgonly=“0” />
</txp:if_article_list>
<txp:if_individual_article>
<txp:article/>
</txp:if_individual_article>
<txp:older><txp:text item=”« Previous Entries” /></txp:older>
<txp:newer><txp:text item=“Next Entries »” /></txp:newer>
Offline
#3 2010-11-12 12:16:01
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Script to call articles
Cyprian wrote:
<txp:if_article_list>
<txp:article limit="1" pgonly="0" />
</txp:if_article_list>
It looks like this code is not on the page template for section ‘default’ (front page), because it’s showing 2 articles. Or maybe you have another article tag elsewhere on that page.
If you want to display only articles from a specific category, you can use <txp:article_custom />
:
<txp:article_custom section="journal" category="idea" limit="1" />
But we’d need a little bit more information on how you set up your sections/page templates.
As you can see when I click on header of any article I doesn’t work as well…
What is ‘doesn’t work’? What do you expect it to do that it doesn’t?
Offline
Pages: 1