Jump to content

Modify Output of renderpager


Pete Jones
 Share

Recommended Posts

I'm just looking at trying to modify the output of the renderPager function. Instead of <li> for the page numbers, we need a select menu. Is it possible to modify the HTML that is returned or will I need to write my own function?

Historically I would have used some form of override (Joomla) or inheritance to achieve this. What is the best way to 'build' on the PW core rather than rewrite it?

What we're looking to achieve is have a dropdown rather than the intermediary numbers e.g.

1 ~ DROPDOWN ~ LASTPAGE

Link to comment
Share on other sites

I've been looking at that. I think we should be able to change the output to a <select> list and handle page changes with a bit of JS. If we wanted to take this further, are there any 'demo' module extensions that we could look over? A kind of 'hello - extended- world'?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...