Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-11-03 17:20:51

txtb8b
Member
Registered: 2007-10-29
Posts: 20

Adding to nav bar dynamically

When creating static files (section+pages) I can correctly exclude the ones I do not want showing up on the section list. I would like to know if there is a way to still add these pages in a different menu somewhere else in the site dynamically, as they get published via the calendar (they have a future date as a timestamp).

In other words,

new static > future date > excluded from sections > added to another menu.

The last bit is what I don’t know how to do. Thanks.

Offline

#2 2007-11-03 19:04:08

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

Re: Adding to nav bar dynamically

Not 100% sure if this is what you mean, but:

<txp:section_list exclude="section5,section6" />

Somewhere else:

<txp:section_list sections="section5,section6" />

Offline

#3 2007-11-03 20:02:56

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: Adding to nav bar dynamically

Correctly asked question is one half of right answer :)


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#4 2007-11-04 01:49:16

txtb8b
Member
Registered: 2007-10-29
Posts: 20

Re: Adding to nav bar dynamically

You are totally right.

In fact, after reading Els polite anwser I realized I have no need for this as the posts I am scheduling with a future date are articles and those would not show up in the section list. I got confused with the static pages (those are added manually and not via calendar). But his answer still was useful. Thank you, all.

Offline

Board footer

Powered by FluxBB