Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2007-04-12 18:12:52
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Textpattern Navigation
Is the plugin activated? If so, does it do what it’s supposed to do? If it doesn’t work as expected, you’d better ask in the plugin thread.
If it does, switch to ‘Live’ mode (in Admin > preferences). The warning will probably go away then.
Offline
Re: Textpattern Navigation
I usually start by creating my sections first then i create a form called navigation then hard code the following:
<ul>
<txp:if_section name=“home, default”>
<txp:section wraptag=“li” link=1 title=1 name=“home” class=“indicator” />
<txp:else />
<txp:section wraptag=“li” link=1 title=1 name=“home” />
</txp:if_section>
<txp:if_section name=“explained”>
<txp:section wraptag=“li” link=1 title=1 name=“explained” class=“indicator” />
<txp:else />
<txp:section wraptag=“li” link=1 title=1 name=“explained” />
</txp:if_section>
………
</ul>
This way also gives me a hook to apply some css on the class indicator using the if.
I then <txp:output_form form=“navigation” /> on my page just like an include file.
Hope this helps
Anthony
Forever learning.
Offline
#15 2007-04-23 18:10:41
- chebureki22
- New Member
- Registered: 2004-11-13
- Posts: 8
Re: Textpattern Navigation
I’m having problems with my navigation. Someone else designed the site and I moved the design into TXP and it works fine. The design could have been done better, but you can’t have everything.
There are two navigation bars: one goes by categories and another goes by sections. The sectional navigation bar was easy to set up, but I’m having difficulty setting up the categories.
Because the site is mostly static and TXP will be used by the owner to edit the content, each category has only one entry. On top of that, one entry that is not categorized appears on the front page. I’m having some trouble to code the TXP template page to view categories when a user clicks on the navigation bar.
It should be simple, but I think I overcomplicated it.
Here’s what I have:
<txp:article />
<txp:if_individual_article>
<p><txp:link_to_prev><txp:prev_title /></txp:link_to_prev>
<txp:link_to_next><txp:next_title /></txp:link_to_next></p>
<txp:else />
<p><txp:older>Previous</txp:older>
<txp:newer>Next</txp:newer></p>
</txp:if_individual_article>
But no pages show up where they’re supposed to..
Thanks for your help…
Last edited by chebureki22 (2007-04-23 18:12:16)
Offline
#16 2007-04-23 20:03:57
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Textpattern Navigation
Category lists use the default page (= front page) by default. So if the category pages are not displayed, the categorized articles are probably in sections that are set not to be displayed on the front page (in Presentation > Sections). If the article that must be displayed on the front page is a fixed one, one way to solve this is setting all relevant sections to show on the front page, and in your page template use something like this:
<txp:if_category> <!-- if we are on a category page -->
<txp:article />
<txp:else /> <!-- if we are on the front page -->
<txp:article_custom id="xx" />
</txp:if_category>
Offline