Categories > TinyButStrong general >

Multiple NavBars per page

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Shashi
Date: 2010-10-23
Time: 07:05

Multiple NavBars per page

Hi,

While using the navbar plugin, its working great, but with just 1 navbar per page.
If i try to copy the navbar to another location, its not working.

example:
navbar
mysql-result-table
navbar

so I am trying to put the same navbar at 2 places in the page, one above the table and one below.
When I try that, and try to load the site, the first navbar loads, and the page is stuck.

How do I make the second navbar also to work ?


Thanks,
Shashi

By: Skrol29
Date: 2010-10-24
Time: 13:52

Re: Multiple NavBars per page

Hi,

If you give the same name for two blocks, TBS will assume it is one bloc. And any contents between sections is deleted.
You have to give two different names to your nav bars, and merge them in one shot like this:
$TBS->PlugIn(TBS_NAVBAR,'nav1,nav2','',$page,$rec_nbr,$page_size);
By: Shashi
Date: 2010-10-26
Time: 03:27

Re: Multiple NavBars per page

Thank You.

Worked great.