Categories > TinyButStrong general >

Plugin Navbar and url-rewriting

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Stefy
Date: 2008-03-07
Time: 13:44

Plugin Navbar and url-rewriting

Hi,
I'm a new user of TBS, and I think it's great.
I'd like to use the plugin NavBar, and I wonder if it's possible to use url-rewriting inside this barnav.
I don‘t really know how to do it. Some help will be appreciated.
(Sorry for my english, I'm french ..... )
Thank you !
By: Skrol29
Date: 2008-03-07
Time: 14:49

Re: Plugin Navbar and url-rewriting

Hi Stefy,

There is a french forum if you feel better with it.

The URL rewriting doesn't affect the way you are coding at the PHP side.
You just have to code URLs in your template with the syntax given by the rewriting.
By: Stefy
Date: 2008-03-07
Time: 15:00

Re: Plugin Navbar and url-rewriting

yes; I realise that my question was not complete.
I use a php function : urlrewrinting($url) that returns the url rewrited.
I'd like to apply it to the navbar if it's possible.
So I have to apply it to the PHP side, but I don't know how to get values as 'nv.prev'
or 'nv.next' to be able to use my function.
If it's not possible, I will do as you said.
By: Skrol29
Date: 2008-03-07
Time: 15:06

Re: Plugin Navbar and url-rewriting

Parameter "onformat" is what your need.
[nv.prev;onformat=f_myrewriting]

f_myrewriting() must be a custom PHP function with a particular syntax. See the manual for details and examples.
By: Stefy
Date: 2008-03-07
Time: 16:45

Re: Plugin Navbar and url-rewriting

Thank you very much, I will try :)