I created a pair of buttons to use to paginate a view.
I'd like the buttons to show the page number you'd be getting when clicking on them.
However I do not see where I can compute the button text ?
I created a pair of buttons to use to paginate a view.
I'd like the buttons to show the page number you'd be getting when clicking on them.
However I do not see where I can compute the button text ?
First of all, I am assuming that you don't want to use the default pagination element ?
You could create a single line item as a temporary field that you can set via javascript and then for the pagination button you could use Text Element and set it as an echo text for that temporary field. Does that make sense to you ?
Tinus Riyanto - Prisma Global Solusi
Yes, i could use a .css or other workarounds.
But they complexify code, make maintenance more complicated and are cumbersome.
It would be much easier to be able to use some compute function to create a label, or at least something akin to the variables we can use in a text field. A citizen developper can use that. Going into .css or JS is not 'citizen' level to me.