Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-05-28 16:07:05

ghizza
Member
Registered: 2007-05-22
Posts: 13

Navigation problems

I’m really going crazy, what I want to do seems so simple…
The page is http://www.ghizza.com/textpattern/BananaBabelBrainstormingBlog
Left menu: the headers of last 8 articles.
Clicking on one, it opens in a single page.
In the general page of the section, the last 5 article bodies are shown. At the bottom of the page I installed ob1_googlenav, it works fine.
So far, everything’s OK.

Now I would like to use the same navigation system in the menu too: after 8th header in my menu, I would like to add some navigation tag that allows readers to see the headers of older articles.
And here… nothing works.
If I insert in my menu the same ob1_googlenav code I use in the page, nothing happens.
Even with the classic <txp:older><txp:text item=“older” /></txp:older>: nothing.

Some details: the code of menu is:

<txp:article_custom allowoverride="0" form="link_bbbb" limit="8" pgonly="0" section="BananaBabelBrainstormingBlog" /><txp:older><txp:text item="older" /></txp:older>

where link_bbbb contains:

<txp:permlink><txp:title /><br /><txp:posted /></txp:permlink>

I really can’t get out of this, I can’t see what is wrong.
Thanks.

Offline

#2 2007-05-28 20:02:33

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

Re: Navigation problems

Pagination doesn’t work with article_custom. I understand you want the menu to show articles from your current section (BananaBabelBrainstormingBlog), so it won’t be a problem changing to <txp:article />.

Offline

#3 2007-05-28 21:18:55

ghizza
Member
Registered: 2007-05-22
Posts: 13

Re: Navigation problems

That was so simple.
Thanks again Els… I think I’ll add you to the “credits” in my website :-)
Ghizza.

Offline

#4 2007-05-28 23:31:41

ghizza
Member
Registered: 2007-05-22
Posts: 13

Re: Navigation problems

Just another thing.
Clicking on a menu item, the single article is shown alone on the right, but the left menu displays only its header.
How can I show there the complete menu?

Offline

#5 2007-05-29 13:44:51

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

Re: Navigation problems

Oh dear. That’s because <txp:article /> is context sensitive, so on an individual article page, it will only display that specific article, even in your menu. You’d need <txp:article_custom /> to keep your menu, but… then you’ll have your original problem back.

Last option: have a look at the chh_article_custom plugin.

Offline

Board footer

Powered by FluxBB