Keyword

pagination style

  • stavroch
  • stavroch's Avatar Topic Author
  • Offline
  • Elite Member
More
14 years 11 months ago #85502 by stavroch
pagination style was created by stavroch
Which files do I have to change for change the style (orientation - images) of pagination design?e.x. I am looking to have images for Next and Previous links.

Please Log in or Create an account to join the conversation.

More
14 years 11 months ago #85503 by vtiger
Replied by vtiger on topic pagination style
Hi,
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
  • stavroch's Avatar Topic Author
  • Offline
  • Elite Member
More
14 years 11 months ago #85504 by stavroch
Replied by stavroch on topic pagination style
I am using custom template so I don't have templates/ja_purity/html/pagination.php Where can I found the pagination.php ?

Please Log in or Create an account to join the conversation.

More
14 years 11 months ago #85505 by vtiger
Replied by vtiger on topic pagination style
In joomla installation package... where ja_purity is included ...

LN

Please Log in or Create an account to join the conversation.

  • stavroch
  • stavroch's Avatar Topic Author
  • Offline
  • Elite Member
More
14 years 11 months ago #85506 by stavroch
Replied by stavroch on topic pagination style
Can you attach that file (pagination.php) there because I can't find it.

Please Log in or Create an account to join the conversation.

More
14 years 11 months ago #85507 by vtiger
Replied by vtiger on topic pagination style
yes
Attachments:

Please Log in or Create an account to join the conversation.

  • stavroch
  • stavroch's Avatar Topic Author
  • Offline
  • Elite Member
More
14 years 11 months ago #85508 by stavroch
Replied by stavroch on topic pagination style
Are you sure that this pagination.php is the same with the K2 pagination?
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.

More
14 years 11 months ago #85509 by vtiger
Replied by vtiger on topic pagination style
I'm sure that attached pagination.php is NOT the same with joomla default pagination because this one is override for default one :)
K2 haven't any "self" pagination template or renderer...

Please Log in or Create an account to join the conversation.

  • stavroch
  • stavroch's Avatar Topic Author
  • Offline
  • Elite Member
More
14 years 11 months ago #85510 by stavroch
Replied by stavroch on topic pagination style
On the php that you have uploaded has a pagination link into ul li and on the page that i use k2 has and not

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #85511 by Simon Wells
Replied by Simon Wells on topic pagination style
Pagination will get its basic styling from the Joomla template that is used, but it is contained within div.k2Pagination.
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
  • stavroch's Avatar Topic Author
  • Offline
  • Elite Member
More
14 years 10 months ago #85512 by stavroch
Replied by stavroch on topic pagination style
I would like to have images instead of the " << " characters. Which is not easy to create it with css. Also I would like to have the "Start" and the "Last" on the next line as images.
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.

More
14 years 10 months ago #85513 by Simon Wells
Replied by Simon Wells on topic pagination style
Hi Stavros,
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
  • stavroch's Avatar Topic Author
  • Offline
  • Elite Member
More
14 years 10 months ago #85514 by stavroch
Replied by stavroch on topic pagination style
I change my /templates/joomla/html/pagination.php with this file api.joomla.org/__filesource/fsource_Joomla-Framework_HTML_joomlahtmlpagination.php.html I change also the line with the "<" but no changes will happen.
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.

More
14 years 10 months ago #85515 by vtiger
Replied by vtiger on topic pagination style
Linked file isnt file for override. I post one few comment above...
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
  • stavroch's Avatar Topic Author
  • Offline
  • Elite Member
More
14 years 10 months ago #85516 by stavroch
Replied by stavroch on topic pagination style
Can you give me one pagination.php right file?
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.

More
14 years 10 months ago #85517 by vtiger
Replied by vtiger on topic pagination style
??
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
  • stavroch's Avatar Topic Author
  • Offline
  • Elite Member
More
14 years 10 months ago #85518 by stavroch
Replied by stavroch on topic pagination style
As I had mentioned before on the file that you attach you are not displaying anywhere the characters "&lt;" which is displayed on my site www.go-out.gr/theatro

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #85519 by vtiger
Replied by vtiger on topic pagination style
&amp; raquo ;
&amp; 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
  • stavroch's Avatar Topic Author
  • Offline
  • Elite Member
More
14 years 10 months ago #85520 by stavroch
Replied by stavroch on topic pagination style
Hy Lukas,
I am not talking only about the chacters &lt;&lt; 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.

More
12 years 4 months ago #85521 by Vseva
Replied by Vseva on topic Re: pagination style
In Joomla 2.5.8, and probably other version of 2.5 you can find the pagination file in:

libraries/joomla/html/pagination.php

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum