Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-01-29 00:21:22
- Kolb
- New Member
- Registered: 2006-01-29
- Posts: 2
Menu questions
Hi all,
Playing around with Textpattern and I must say it’s one nice CMS.
I’m having troubles implementing a menu. As you can see on http://www.repcred.com I have a menu with 2 sections (about, contact) and 3 categories (music, movies, streetlife).
I’m using the following tags in my default page, as sugested in the faqs:
<code>
<ul>
<li><a href=“http://www.repcred.com”>Home</a></li>
<txp:section wraptag=“li” link=1 title=1 name=“about” />
<txp:section wraptag=“li” link=1 title=1 name=“contact” /><br />
</ul>
<ul>
<txp:category wraptag=“li” link=1 title=1 name=“Music” />
<txp:category wraptag=“li” link=1 title=1 name=“Movies” />
<txp:category wraptag=“li” link=1 title=1 name=“streetlife” /><br />
</ul>
</code>
This seems to work, but when I’m on the homepage and navigate to ‘About’ and then ‘Music’ there is something wrong. Check the URL. Nothing appears, there should be a text which you can read when going straight to the ‘Music’ category on the homepage.
I’m quite sure it’s something very stupid that I cannot find to make a decent/working menu.
Anyone here in favor helping me?
Thanks!
Last edited by Kolb (2006-01-29 00:35:30)
Offline
Re: Menu questions
I’m not sure I understand, but make sure that you assigned the category link to the appropriate section. If you don’t specify it, the category are assigned to the current section. So, if you click the Music link in the About section, you’ll be directed to the category Music in the About section, that is empty.
You may need to specify the section in which you have your category. I suspect it is default, so you need:
<code>…<ul> <txp:category wraptag=“li” link=1 title=1 name=“Music” section=“default” />…</code>
This is tricky, especially at the beginning, but if you go further, you’ll start to apreciate this separation…
I hope this may help.
Z-
Offline
#3 2006-01-29 15:06:05
- Kolb
- New Member
- Registered: 2006-01-29
- Posts: 2
Re: Menu questions
Thanks Zanza, it’s working now!
Cheers, Kolb
Offline
Pages: 1