Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-04-29 07:57:54

dazonic
Member
Registered: 2006-10-24
Posts: 43

Section list item that doesn't point to a section

I want my section list to be as follows…..

Home, Book a Lesson, About, Contact

Book a Lesson is the section ‘book’, but i have a rather large web app that i want in place of that section.

With SEF on, is it safe to just make a directory /book/ to override txp’s SEF?

Offline

#2 2007-04-29 08:04:06

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Section list item that doesn't point to a section

The way i would go about it is not have a section named “book” and manually add the link to the ‘book’ subdirectory where your app will reside.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2007-04-30 09:10:55

dazonic
Member
Registered: 2006-10-24
Posts: 43

Re: Section list item that doesn't point to a section

But i want it in the section list??

<txp:section_list class="" active_class="here" default_title="Home" include_default="1" wraptag="ul" break="li" sections="book, clips, contact, about"/>

Should i get rid of the ‘book’ section, and split my section list into two lists?

<ul>

<txp:section_list class=”“ active_class=“here” default_title=“Home” include_default=“0” break=“li” exclude=“clips, contact, about, archive, book”/>

<li><a href=“http://domain.com.au/book/”>Book a Lesson</a></li>

<txp:section_list class=”“ active_class=“here” include_default=“0” break=“li” sections=“clips, contact, about”/>

</ul>

Last edited by dazonic (2007-04-30 09:18:20)

Offline

#4 2007-04-30 09:29:23

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Section list item that doesn't point to a section

You could do something like <ul><li><a href=/book">book</a></li><txp:section_list class="" active_class="here" default_title="Home" include_default="1" break="li" sections="clips, contact, about"/></ul>

In that way the book folder can contain your app and, depending on your url schema, it shouldn’t conflict with the rewrite rules of txp

Last edited by colak (2007-04-30 09:32:39)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB