Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Display articles doesn't work
I’ve got a little problem…
My site has a Home page and a Weblog. On the home page I want to display the latest article and under Weblog I would like to display all articles.
Home page
————————
<code><div id=“latestentry”>
<txp:article limit=“1” />
</div></code>
Weblog
———————-
I’ve created a new section for the weblog, called “Weblog” and made a new site template for it. In the site template I just changed the above code to
<code><div id=“latestentry”>
<txp:article limit=“1” />
</div>
<div id=“olderentries”>
<txp:article offset=“1” />
</div></code>
The one on the home page works wonderful, but on the Weblog page, it doesn’t display anything!
Whats the matter? I hope that one of you can help me…
thanks very much
doni
Last edited by doni (2006-04-26 13:18:25)
Offline
Re: Display articles doesn't work
hi doni,
in “Presentation -> Sections”… did you change which template should use your “weblog” section?
Offline
Re: Display articles doesn't work
Yes, I’ve changed it to “Weblog”…
The funny thing is that, if I change it to “Default”, which works for the home page, It doesn’t work for the Weblog section…
any ideas what this could be?
thanks
Offline
Re: Display articles doesn't work
Hi doni
Check this FAQ: diagnosing template problems
And now that you are there, check all the FAQs: you will find fantastic tips and tricks :D
Also, are you naming your page templates and sections (name, not title) with capital letters?
Dont know if that could bring any issue, but I would go for lowercase letters.
Of course, you can have your section title with practically any character (upper, lower, etc) out there, but I will keep the section name and the page template name with lowercase.
Post again if problems continue, and if you solve them, make a post too (just to know what was going on)
Offline
Pages: 1