Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-04-26 13:43:29
- janw
- Member
- From: Groningen
- Registered: 2005-11-18
- Posts: 47
Changed a section's page, now the section doesn't display correctly
I changed my weblog from the default page to another page (now I got a static page as the default one)
I created a new section (blog) and defined the page it should use.
Now if I choose weblog it shows the last 5 as it is supposed to.
If I click on one of the articles or try to add a comment, it just shows the 5 articles again…
Anybody got an idea what’s wrong?
(Edit: updated thread title to something more useful. :) -Mary)
Last edited by Mary (2006-04-27 18:53:01)
Offline
#2 2006-04-26 13:47:38
- janw
- Member
- From: Groningen
- Registered: 2005-11-18
- Posts: 47
Re: Changed a section's page, now the section doesn't display correctly
Update:
When I change this code:
“txp:article_custom form=“default” section=“article” listform=“excerpt” limit=“5” sortdir=“desc”“
To:
“txp:article form=“default” section=“article” listform=“excerpt” limit=“5” sortdir=“desc”“
the seperate artilces work but not the blog with the 5 items….
Offline
Re: Changed a section's page, now the section doesn't display correctly
Not sure what you’re trying to do. Clarify, and I can help.
Offline
#4 2006-04-26 22:43:56
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Changed a section's page, now the section doesn't display correctly
The FAQ might help.
If not, you’ll need to describe your problem more clearly.
Alex
Offline
#5 2006-04-27 09:02:03
- janw
- Member
- From: Groningen
- Registered: 2005-11-18
- Posts: 47
Re: Changed a section's page, now the section doesn't display correctly
The problem is when this code:
txp:article form=”default” section=”article” listform=”excerpt” limit=”5” sortdir=”desc”
was in my default page (so the url was either index.php or index.php?id=10) it worked (both the form and the listform).
Now I moved everything to another page (the url is index.php?s=blog or index.php?id=10) now only the form works and not the listform.
If I change “txp:article” to “txp:article_custom” it’s the other way around.
Offline
#6 2006-04-27 14:52:07
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Changed a section's page, now the section doesn't display correctly
janw wrote:
<txp:article form="default" section="article" listform="excerpt" limit="5" sortdir="desc" />
was in my default page (so the url was either index.php or index.php?id=10) it worked (both the form and the listform).
Now I moved everything to another page (the url is index.php?s=blog or index.php?id=10) now only the form works and not the listform.
You can only display articles from section ‘article’ on anothers section’s page with <txp:article_custom />
.
If I change “txp:article” to “txp:article_custom” it’s the other way around.
< txp:article_custom /> is only for article lists and thus accepts only the attribute ‘listform’.
Last edited by els (2006-04-27 15:01:47)
Offline
Re: Changed a section's page, now the section doesn't display correctly
Els wrote:
<txp:article_custom />
is only for article lists and thus accepts only the attribute ‘listform’.
hi.
just to correct a little mistake: txp:article_custom
accepts form=""
attribute, but not "listform=""
from the TextBook:
The attribute listform no longer exists for article_custom (only, it still exists for article). Instead, make use of conditional tags.
Last edited by maniqui (2006-04-27 15:03:49)
Offline
#8 2006-04-27 15:02:43
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Changed a section's page, now the section doesn't display correctly
Eek! Thanks Maniquí, I edited my post above. Sorry janw.
Offline
#9 2006-04-28 14:46:19
- janw
- Member
- From: Groningen
- Registered: 2005-11-18
- Posts: 47
Re: Changed a section's page, now the section doesn't display correctly
I got the problem solved in changing the blogitems sections :-(
Stupid mistake. Sorry.
Offline