Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-04-18 22:53:50

bootle
New Member
Registered: 2009-04-18
Posts: 6

how to remove initial "home" menu item, to create a brochure website?

Have investigated several CMSs for creating static brochure websites, i.e. without blog features. Love txp so far…

Am often creating simple sites – all I need is welcome, services, about, contact pages – the usual static pages typical of brochure sites.

Using the default page provided, how do I setup the menu so I only see the static pages? Don’t want the first menu item (home) that effectively shows the most recent articles from all sections.

thanks,

Colin Bootle

Offline

#2 2009-04-18 23:06:38

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: how to remove initial "home" menu item, to create a brochure website?

You could use the <txp:section_list /> tag to output your menu using the “sections” attribute to determine which sections are listed and in what order they appear. There are other attributes you can add for “wraptag”, “break” and “active_class” so you could end up with something like:-

<txp:section_list sections="welcome,services,about,contact" wraptag="ul" break="li" active_class="active" />

Then go to the “Sections” tab and set the welcome section to appear on the frontpage whilst the others are set to not appear.

Check the link out for more attributes that can be used with this tag. In fact bookmark the Textbook for future reference.

Last edited by thebombsite (2009-04-18 23:08:28)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#3 2009-04-19 17:44:44

bootle
New Member
Registered: 2009-04-18
Posts: 6

Re: how to remove initial "home" menu item, to create a brochure website?

thanks, spot on, and highly educational ;-)

like your website too, and themes

Colin

Offline

#4 2009-04-29 21:49:10

bootle
New Member
Registered: 2009-04-18
Posts: 6

Re: how to remove initial "home" menu item, to create a brochure website?

Feel daft that I can’t figure this out…

having got the menu of static pages fine, how do I highlight the default page? I’ve set “welcome” section to be on front, but how do I get the menu to highlight that (with the active class). Here’s the code at present…

<div id=“sidebar-1”>

<txp:section_list sections=“Welcome,Services,Machines,About,Contact” wraptag=“ul” break=“li” active_class=“active” />

</div>

Offline

#5 2009-04-29 22:57:24

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

Re: how to remove initial "home" menu item, to create a brochure website?

Try this:

<txp:section_list sections="services,machines,about,contact" include_default="1" default_title="Welcome" wraptag="ul" break="li" active_class="active" />

Don’t use capitals in section (and category) names.

Offline

#6 2009-04-30 11:49:29

bootle
New Member
Registered: 2009-04-18
Posts: 6

Re: how to remove initial "home" menu item, to create a brochure website?

Thanks, that did it perfectly. It did indeed need the

include_default=“1” default_title=“Welcome”

as well as lower case section names.

Many thanks for your help. Am rapidly becoming a huge fan of txp.

Offline

Board footer

Powered by FluxBB