Categories > TinyButStrong general >

feature for the navigationbar

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: RwD
Date: 2004-03-13
Time: 01:35

feature for the navigationbar

Hi, I just thought of a usefull function, if it can be implemented that is...

When the navigationbar is used this is because there are multiple files to display, too many to display all at once, right?

But what if there is only 1 page, a navbar looks a bit silly then, I remove it now with a tbs check so I can handle it allready, but an extra option would be handy :)

I am not sure if it is really easy to do, but I guess since the block option can be specified and so I guess it is reatively easy to make?

pro's:
-cleaner pages, less unused links
-cleaner php code, the remove control is done in the object

con's
-Everyone who studied GUI design knows that buttons that are removed or move around or change appearance cause confusion. This should be avoided with style sheets and strict design rules (for web design that is).

counter con:
-that is a design decision by the programmer, so if you can make tbs easier with this I would be very gratefull :P
By: Skrol29
Date: 2004-03-14
Time: 00:19

Re: feature for the navigationbar

That's a good iead, I'll study how yo make it.
By: It is just me
Date: 2004-03-25
Time: 22:42

Re: feature for the navigationbar

Hi Skrol29,

I had the same problem as RwD and my solution was:
After the line 1922 ( after the '}' of the last 'for' in the function tbs_Merge_NavigationBar), I just add this line:

if(count($Data)==1)
  $Data = array();

and all works fine now.
Hope this helps.
By: RwD
Date: 2004-03-25
Time: 23:40

Re: feature for the navigationbar

Problem with that solution is that even though I now lost the 1 (for 'there is one page to display') there is still the first, previous, next and last links (or actually the text)

I could like change their behavior so they disappear when they are no link. But the idea was to make tbs easier, so the feature would be helpfull if possible... ;P