Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-04-26 13:08:57

doni
New Member
From: Switzerland
Registered: 2006-04-26
Posts: 9
Website

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

#2 2006-04-26 14:01:42

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: Display articles doesn't work

hi doni,

in “Presentation -> Sections”… did you change which template should use your “weblog” section?


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#3 2006-04-26 14:27:17

doni
New Member
From: Switzerland
Registered: 2006-04-26
Posts: 9
Website

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

#4 2006-04-26 18:20:06

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB