Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#3 2008-02-29 19:12:24

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

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


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

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

#10 2008-03-01 10:35:19

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

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

#12 2008-03-01 14:44:24

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: what's wrong here ?

Sarcastid is unknown word for me, plus I’m not beeing sarcastic at all, doh – lol, geez.

Offline

#13 2008-03-01 19:11:01

roelof
Member
Registered: 2005-03-27
Posts: 647

Re: what's wrong here ?

oke,

then i thought something else then you mean to say.
But im not even closer to eliminate my problem.

Roelof

P.S. i try to make a difference with categories but it won’t work.
If a do a <txp:category /> it’s stay empty.

Last edited by roelof (2008-03-01 20:32:30)

Offline

#14 2008-03-01 22:05:21

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: what's wrong here ?

I think I can see why it doesn’t work, but can you tell me first if you are using the same page template for the front page and your sections, or do the front page and each section have it’s own page template?

From the plugin help:

upm_date_menu can only be used on the front page by using messy urls. This is due to how Textpattern understands sections and the front page.

It looks like you’ll have to switch to messy.

Last edited by els (2008-03-01 22:34:04)

Offline

#15 2008-03-02 04:14:00

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: what's wrong here ?

You’re not understanding what I’m saying. If you want the archive to appear on a different section, such as “voorpagina”, then you need to put the upm_date_archive tag there and make sure upm_date_menu is pointing to that section (right now, it is not). See the plugin doc.

Last edited by Mary (2008-03-02 04:14:42)

Offline

Board footer

Powered by FluxBB