Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2008-02-29 18:35:52
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
what's wrong here ?
Hello,
I have two sections : voorpagina who’s used for the frontpage and article.
Now im using this :
<txp:if_section name=“voorpagina”>
<txp:article section=“voorpagina” form=“default” />
<txp:else>
<txp:upm_date_archive mode=“smart” form=“dagboek” />
But now nothing is placed on the frontpage and nothing on the other places.
What’s went wrong here ?
Roelof
Offline
#2 2008-02-29 18:40:57
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: what's wrong here ?
For the frontpage use section name=""
. Make sure only your section ‘voorpagina’ is set to be displayed on the frontpage (in Presentation > Sections). And close the if_section tag. So:
<txp:if_section name="">
<txp:article form="default" />
<txp:else>
<txp:upm_date_archive mode="smart" form="dagboek" />
</txp:if_section>
Offline
Re: what's wrong here ?
and close the <txp:else />
too. Don’t you think, Els? ;)
BTW, roelof, check your code, dude! You will save more time looking at your code one or two times than posting here so often! :D
Offline
#4 2008-02-29 19:54:21
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: what's wrong here ?
Els,
Thank you , it works now.
Maniqui,
If i don’t see what I’m doing wrong i do not ask here.
Roelof
Offline
#5 2008-02-29 21:10:01
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: what's wrong here ?
maniqui wrote:
and close the
<txp:else />
too. Don’t you think, Els? ;)
Eek! Sloppy me!
Offline
#6 2008-02-29 21:19:48
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: what's wrong here ?
Roelof
Looking at your post here I think I gave you the wrong code. If you need to set your other sections to be displayed on the front page as well (to show up in the menu), you can do this:
<txp:if_section name="">
<txp:article_custom section="voorpagina" form="default" />
<txp:else />
<txp:upm_date_archive mode="smart" form="dagboek" />
</txp:if_section>
Offline
#7 2008-02-29 21:33:18
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: what's wrong here ?
hello Els,
Sorry but i don’t work.
Now i get the right article on the frontpage but if a choose febrauri 2005 i still get the frontpage article and not the other articles.
You can see it at : http://textpattern.tamarawobben.nl
Roelof
Offline
#8 2008-02-29 21:40:14
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: what's wrong here ?
You’ll need to direct upm_date_archive (and the menu tag) to its own section which you need to create (say “archive”).
For example, on my mom’s blog, this is the default page and this is the archive page.
Offline
#9 2008-03-01 08:50:15
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: what's wrong here ?
hello Mary,
I have done that.
The frontpage article has the section “voorpagina”
The rest has the section “dagboek”.
Both sections are displayed on the frontpage otherwise i don’t get the menu working.
Roelof
Offline
Re: what's wrong here ?
roelof wrote:
If i don’t see what I’m doing wrong i do not ask here.
You mean that you won’t ask anything in future? As you’re saying so ;) Matter what, if you have a big problem and you can’t get it fixed, go a head and ask here your pop-quiz. This is a support forum afterall :)
mary wrote:
For example, on my mom’s blog, this is the default page and this is the archive page.
Mom’s blog :-) Lovely idea to build blog for mom – I wish there were more people that do that kind of nice little things. Nice little words especially on the about page.
Last edited by Gocom (2008-03-01 10:39:47)
Offline
#11 2008-03-01 12:46:46
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: what's wrong here ?
hello Gocom,
No, im only saying that i only ask for help if i can’t find the answer myself. So i can learn from it.
Maybe you can help instead of being sarcastid.
Roelof
Offline
Offline