Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2008-08-20 18:38:23
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: menu of categories and months
Hoi Gocom,
Of course , i have read your post.
But when i do : <a rel=“nofollow” href=”<txp:site_url />?c=<txp:category1 />&month=<txp:posted format=”%Y-%m” />”><txp:posted format=”%B” /></a>
I have this error-message : tag_error -> Textpattern Notice: De modelpagina default heeft nog geen txp:article tag on line 474.
Roelof
Offline
Offline
#15 2008-08-20 19:38:18
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: menu of categories and months
oke,
it works now.
Thanks everybody for their help.
Roelof
Offline
#16 2008-08-21 08:29:10
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: menu of categories and months
Sorry, i have one question.
I need to make my menu like this :
<div class="menu">
<ul>
<li><a href="#nogo">Home</a></li>
<li><a href="#nogo">About us</a></li>
<li class="sub"><a href="#nogo">Products<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
<li><a href="#nogo">Tripods</a></li>
When i do this :
<a rel="nofollow" href="<txp:site_url />
<li class="sub">?c=<txp:category1 /></li>&month=<txp:posted format="%Y-%m" />"><txp:posted format="%B" /></a>
</txp:if_different>
the whole menu looks broken.
Anyone a idea ?
Roelof
Last edited by ruud (2008-08-21 10:22:25)
Offline
Re: menu of categories and months
Not sure if this is what you want, but at least the tags are in the right order.
<li class="sub">
<a rel="nofollow" href="<txp:site_url />?c=<txp:category1 />&month=<txp:posted format="%Y-%m" />"><txp:posted format=”%B” /></a>
</li>
</txp:if_different>
Offline
#18 2008-08-21 12:43:24
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: menu of categories and months
Ruud,
Thank you,
One problem now.
I have this form :
<ul>
<txp:if_different>
<li class="sub">
<a href="#nogo">
<txp:category1 /><br />
</txp:if_different>
<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
<txp:if_different>
<li>
<a rel="nofollow" href="<txp:site_url />?c=<txp:category1 />&month=<txp:posted format="%Y-%m" />"><txp:posted format=”%B” /></a>
</li>
</txp:if_different>
what TPX makes is this :
<ul>
<li class="sub">
<a href="#nogo">
zwangerschap<br />
<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
<li>
<a rel="nofollow" href="http://test.tamarawobben.nl/?c=zwangerschap&month=2005-02">”februari”</a>
</li>
<ul>
<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
<li>
<a rel="nofollow" href="http://test.tamarawobben.nl/?c=zwangerschap&month=2005-03">”maart”</a>
</li>
But the second time the rules for ie6 and 7 must not appear. After the </li> must be a <li>
It must be like this :
<ul>
<li class="sub">
<a href="#nogo">
zwangerschap<br />
<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
<li>
<a rel="nofollow" href="http://test.tamarawobben.nl/?c=zwangerschap&month=2005-02">”februari”</a>
</li>
<ul>
<ul>
<li>
<a rel="nofollow" href="http://test.tamarawobben.nl/?c=zwangerschap&month=2005-03">”maart”</a>
</li>
What went wrong ?
Roelof
P.S. im going for a week on holidays.
Last edited by ruud (2008-08-29 11:30:09)
Offline
#19 2008-08-29 10:52:23
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: menu of categories and months
Nobody ???
Roelof
Offline
Re: menu of categories and months
The IE6/7 rules are not enclosed in if_different, so the fact that they always appear is correct.
Offline
#21 2008-08-30 14:17:46
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: menu of categories and months
Hoi Ruud,
oke, i have learned this now.
But one guestion. Why is the month between “ “.
Roelof
Offline
Re: menu of categories and months
I think because you’re using this:
<txp:posted format=”%B” />
instead of:
<txp:posted format="%B" />
They are different kinds of quotes. The second type of quotes is interpreted as a delimiter for the attribute value, while the first type is not recognized and treated as a normal character (an non-quoted attribute value).
Offline
#23 2008-09-02 07:14:35
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: menu of categories and months
Ruud,
once again you are my hero.
Thank you very much.
Roelof
Offline