Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#16 2008-03-02 09:22:08
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: what's wrong here ?
Hello,
Els : I have now 1 template for the frontpages and all the other pages.
Mary :
I will read the plugin doc again but i seems that my english is not as good as i thought it will be.
Roelof
Offline
#17 2008-03-02 11:56:52
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: what's wrong here ?
Els,
i tried two templates.
One for the frontpage with section “voorpagina” and one for the rest “article”.
I pointed the articles to the sections but no luck.
I switched over to the messy url’s but also no luck.
Roelof
I understand what Mary means and i have put the preferences on the article section.
Last edited by roelof (2008-03-02 13:38:22)
Offline
#18 2008-03-02 14:04:04
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: what's wrong here ?
Roelof, I’ve got it working in my test install like this (using one template for all sections, and messy URLs).
The tag for the menu, in the sidebar:
<txp:upm_date_menu section="article" link_to="article" insert_empty_months="no" />
This will not show months that don’t have articles; if you want to display the menu on the front page as well, make sure section ‘article’ is set to be displayed on the front page.
On the page, where the articles and article lists should go:
<txp:if_section name="">
<txp:article_custom section="voorpagina" form="default" />
</txp:if_section>
<txp:if_section name="article">
<txp:upm_date_archive section="article" include_date="yes" date_format="%e %B" mode="smart" form="dagboek" />
</txp:if_section>
<txp:if_section name=",article">
<txp:else />
<txp:article /><!-- this is for other sections than the front page or 'article' -->
</txp:if_section>
Of course, if you want to name your article section ‘dagboek’ instead of ‘article’ (which I think would look nicer in Dutch), you will have to change that in the code.
If you prefer to move to the Dutch forum, no problem, just say so :)
Offline
#19 2008-03-02 14:21:46
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: what's wrong here ?
Hello Els,
Thank you for the code but now both articles can be seen on the frontpage.
It looks like every article on the frontpage get the section default instead of there own section.
Roelof
Offline
#20 2008-03-02 14:45:53
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: what's wrong here ?
Then you’ll probably have another <txp:article /> tag on your page.
Offline
#21 2008-03-02 14:51:36
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: what's wrong here ?
Nope,
This is my page :
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html xmlns=“http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=“Content-Type” content=“text/html; charset=iso-8859-1” />
<title><txp:site_name /></title>
<txp:css format=“link” n=“tamara” title=“tamara” />
</head>
<body>
<div id=“container”>
<div id=“header”>
<div id=“header_left”>
<h1>Delicious <span class=“red”>Fruit</span></h1>
<h2>Tastes like heaven</h2>
</div>
<div id=“header_right”>
</div>
</div>
<div id=“left”>
<txp:upm_date_menu section=“article” link_to=“article” insert_empty_months=“no” />
</div>
<div id=“right”>
<txp:if_section name=”“>
<txp:article_custom section=“voorpagina” form=“default” />
</txp:if_section>
<txp:if_section name=“article”>
<txp:upm_date_archive section=“article” include_date=“yes” date_format=”%e %B” mode=“smart” form=“dagboek” />
</txp:if_section>
<txp:if_section name=”,article”>
<txp:else />
<txp:article /><!— this is for other sections than the front page or ‘article’ —>
</txp:if_section>
</div>
<div id=“footer”>Created by: Dieter Schneider 2007 | <a href=“http://www.csstemplateheaven.com”>www.csstemplateheaven.com</a> </div>
</div>
</body>
</html>
Roelof
Offline
#22 2008-03-02 16:00:57
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: what's wrong here ?
That code looks all right.
Your article page works in messy mode: http://textpattern.tamarawobben.nl/index.php?s=article&month=2005-02. So you’ll have to switch to messy.
About the front page: can you check if article ’7 weken echo’ really is in section ‘article’?
Offline
#23 2008-03-02 16:37:01
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: what's wrong here ?
Els,
Thank you, it works now.
Now i can try to make the menu like my old menu but i think that’s not a problem.
And then copy everything to the new site.
Roelof
Offline
#24 2008-03-02 18:08:03
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: what's wrong here ?
Good to hear that :)
Offline