Categories > TinyButStrong general >

feature request for navigationbar

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: RwD
Date: 2004-02-21
Time: 14:12

feature request for navigationbar

currently when I use the navbar and the NavSize = 5 then the first page opened has a navbar looking like this:

<<  <  1  2  3  4  5  >  >> 

and the second third fourth and fifth page als show the exact same...
I think this is just a tad onfusing :P

Perhaps for the next version a good idea would be to have the navbar slide with the pages...

That means that when in total there would be like 100 pages then page 4 would show the following navbar:

<<  <  2  3  4  5  6  >  >> 

This way always keeping the current page in the middle, unless it is near the end, so page 99 would be:

<<  <  96  97  98  99  100  >  >> 


That might be a good addition to the functionality??
I will elaborate on what I mean if you do not know exactly how I intended this
By: Skrol29
Date: 2004-02-21
Time: 14:43

Re: feature request for navigationbar

Yes,

This would be a nice feature.
I think it's gonna be added in a next version.
By: RwD
Date: 2004-02-25
Time: 13:01

Re: feature request for navigationbar

works exactly as I described :P

great, thanks
By: RwD
Date: 2004-02-25
Time: 17:16

One small bug though ;)

The new function works exactly like it should, however, I am wondering why you solved the function call the way you did?

wouldn't it be easier to andd an optional variable at the end of the call, and either make it a boolean and/or declare a constant like tbs_center that can be used to specify the centered position?

The real reason I post this extra reply is because you misspelled centered as position option, you spelled it centred where it should be centered...
By: Skrol29
Date: 2004-02-25
Time: 19:25

Re: One small bug though ;)

Hi,

I added this option in an array instead of in an extra optional parameter because I think they will be more options in the future. At the first shoot of the MergeNavigationBar, I knew they will be futur options asked but I didn't know which one yet.

About 'centred' and 'centered' : my french/english dictonary told me that there was a difference betwen centred and centered. But as I'm not english, I may be did a mistake. If it's so, I will make a correction is TBS.
But as I understand the difference, 'centered' means that it has a center (like a centered system), and 'centred' means that it is in the center (like a centred text).

By: RwD
Date: 2004-02-25
Time: 23:29

Re: One small bug though ;)

the definition for centred indeed exists in the online book of princeton. But it is the exact same as centered. I think you might want to take centered for tbs, but I will check with an english editor I know. I am sure she knows! I'll post her reply tomorrow

by the way the definition is:
concentrated on or clustered around a central point or purpose

and if you ever need to know such things, try google ;)
type in: 'define: <the word to define>' and google gives you the definition for the word..
By: Skrol29
Date: 2004-02-26
Time: 00:35

Re: One small bug though ;)

Good tip about google :)

About 'centred' and 'centered', I will ask to a bilangual friend too...
By: RwD
Date: 2004-02-26
Time: 11:46

Re: One small bug though ;)

centred is UK english
centered is USA english

I always use the USA spelling, that's why I replied :P
So I'm sorry I was wrong, centred is spelled correctly ;)