Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-09-17 10:16:41

ceetee
Member
Registered: 2006-09-16
Posts: 11

Can you check my menu

After looking through the plugins and special tags and not finding anything suitable, I’ve decided to hand code the menu. It runs out the section names and lists the articles underneath. Can someone confirm I have to do this manually or is there a combination of tags that will do the job?

http://www.topmobile.org.uk/

Last edited by ceetee (2006-09-17 15:51:14)

Offline

#2 2006-09-17 10:44:19

TNT
Member
From: Rotterdam, Netherlands
Registered: 2006-01-06
Posts: 256
Website

Re: Can you check my menu

What you can do is something like this:

Create a menu, containing the sections. You can code these by hand (this 2on’t be too much work). Then, in between the names of the phones, you can put a new form, let’s say <code>phone_title</code>. Put the following in this form:

<code><txp : title /></code>

Then, in between your handcoded menu structure, reference to this form like this:

<code><txp :article_custom section=“nokia” form=“phone_title” limit=99999 /></code> (Delete the space after txp)

Change the name of the section with every other phone brand you have.

This is how it eventually should look:

<code>
<h1 >Phone brand</h1>
<txp :article_custom section=“nokia” form=“phone_title” limit=99999 />
<h1 >Phone brand</h1>
<txp :article_custom section=“samsung” form=“phone_title” limit=99999 />

etc.
</code>


Prrrrrrrr

Offline

#3 2006-09-17 13:49:53

ceetee
Member
Registered: 2006-09-16
Posts: 11

Re: Can you check my menu

Exellent, it’s almost there. Is there a way of writing class=“active’ into the selected link. I could do it in javascript but it would be better server side.

Offline

Board footer

Powered by FluxBB