- Posts: 295
COMMUNITY FORUM
pagination style
- stavroch
-
Topic Author
- Offline
- Elite Member
Please Log in or Create an account to join the conversation.
- vtiger
-
- Offline
- Premium Member
- Posts: 83
k2 pagination is rendered thru joomla. So, you can override that.
You can find example file in templates/ja_purity/html/pagination.php
Copy pagination.php into templates/yourjoomlatemplate/html/pagination.php
Then play with css according to your needs...
Regards,
LN
Please Log in or Create an account to join the conversation.
- stavroch
-
Topic Author
- Offline
- Elite Member
- Posts: 295
Please Log in or Create an account to join the conversation.
- vtiger
-
- Offline
- Premium Member
- Posts: 83
LN
Please Log in or Create an account to join the conversation.
- stavroch
-
Topic Author
- Offline
- Elite Member
- Posts: 295
Please Log in or Create an account to join the conversation.
- vtiger
-
- Offline
- Premium Member
- Posts: 83
Please Log in or Create an account to join the conversation.
- stavroch
-
Topic Author
- Offline
- Elite Member
- Posts: 295
On the K2 pagination script I can see that is having
and on the Joomla pagination.php I can see that is having
Please Log in or Create an account to join the conversation.
- vtiger
-
- Offline
- Premium Member
- Posts: 83
K2 haven't any "self" pagination template or renderer...
Please Log in or Create an account to join the conversation.
- stavroch
-
Topic Author
- Offline
- Elite Member
- Posts: 295
Please Log in or Create an account to join the conversation.
- Simon Wells
-
- Offline
- Platinum Member
- Posts: 955
You can see this being called within the generic and the category.php files.
To add images to the Next and Previous buttons, then you would need to create an additional class for
so that you can assign an image to it and the best place would be within your Joomla template.
Use Firebug and you will see the surrounding css and that created by k2.css, you will not see a specific class for next/previous as you will need to create it.
I hope that helps getting you started.
Simon
K2 Support
Please Log in or Create an account to join the conversation.
- stavroch
-
Topic Author
- Offline
- Elite Member
- Posts: 295
For that reason I would like to know how the pagination works and created also?
Please Log in or Create an account to join the conversation.
- Simon Wells
-
- Offline
- Platinum Member
- Posts: 955
I would advise to pop over to the joomla forums and search for pagination there.
There are several explanations on the net, do a quick google search.
Typically i only ever modify the clients template style, but it would be easy to copy from another template.
Simon
K2 Support
Please Log in or Create an account to join the conversation.
- stavroch
-
Topic Author
- Offline
- Elite Member
- Posts: 295
Is it true that the pagination is used by k2 and not from /templates/joomla/html/pagination.php?
Please Log in or Create an account to join the conversation.
- vtiger
-
- Offline
- Premium Member
- Posts: 83
and no, isnt true that the pagination is used by k2 and not from /templates/html/pagination.php
So, if you put right override file into THIS PATH: /templates/html/pagination.php (your mentioned path is wrong "joomla folder is moreover) than K2 look into that folder...
ln
Please Log in or Create an account to join the conversation.
- stavroch
-
Topic Author
- Offline
- Elite Member
- Posts: 295
Can you give me also that pagination.php file on the front end how it works?
Please Log in or Create an account to join the conversation.
- vtiger
-
- Offline
- Premium Member
- Posts: 83
community.getk2.org/forum/topics/pagination-style?commentId=3536014%3AComment%3A64959
put pagination.php file from that package into
JOOMLAROOT/templates/YOURTEMPLATE/html/pagination.php
modify pagination.php as you need. in package you cand find also css example styles ...
thats all
Please Log in or Create an account to join the conversation.
- stavroch
-
Topic Author
- Offline
- Elite Member
- Posts: 295
Please Log in or Create an account to join the conversation.
- vtiger
-
- Offline
- Premium Member
- Posts: 83
& laquo ; (in file without spaces, because this forum formating...)
is what?
man, learn html basics, and don't waste my time for something like this
regards,
LN
Please Log in or Create an account to join the conversation.
- stavroch
-
Topic Author
- Offline
- Elite Member
- Posts: 295
I am not talking only about the chacters << but on your pagination.php create
and on my site (which use your file) create the pagination with and . Also this topic is on public forum so I am not asking only you.
Please Log in or Create an account to join the conversation.
- Vseva
-
- Offline
- New Member
- Posts: 13
libraries/joomla/html/pagination.php
Please Log in or Create an account to join the conversation.