Where is file with category pagination view?

Phoca Gallery - image gallery extension
metmusic
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 17 Nov 2009, 18:44

Where is file with category pagination view?

Post by metmusic »

like topic...
I'm searching about 2 hours and nothing foud :(.
Phoca gallery pagination looks the same like standard joomla pagination but it's not the same file :(
I have to remove <<First < Previous and Next > Last >> words and leave only numerrs 1,2,3, etc.

I have found only this code in views/category/tpl/default.php

Code: Select all

echo '<div style="margin:0 10px 0 10px;display:inline;" class="sectiontablefooter'.$this->params->get( 'pageclass_sfx' ).'" >'
			.$this->tmpl['pagination']->getPagesLinks()
			.'</div>';
but there is variable .$this->tmpl['pagination']->getPagesLinks() and i cannot found tpl for this...

Thanks.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Where is file with category pagination view?

Post by Jan »

Hi, this is taken from view.html.php which get the data from model ->category.php

Jan
If you find Phoca extensions useful, please support the project
metmusic
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 17 Nov 2009, 18:44

Re: Where is file with category pagination view?

Post by metmusic »

I'm not Phoca Hero like You but... probably it's not this file...
I can't find there nothing responsible for paging for example I'm looking for code:

Code: Select all

<< <span class="pagenav">First</span> < <span class="pagenav">Previous</span> <span class="pagenav">1</span> <a title="2" href="/pl/k2/category/1-halki-i-koszulki.html?start=2" class="pagenav">2</a> <a title="Następna" href="/pl/k2/category/1-halki-i-koszulki.html?start=2" class="pagenav">Next</a> > <a title="Ostatnie" href="/pl/k2/category/1-halki-i-koszulki.html?start=2" class="pagenav">Last</a> >></div>
Any other ideas? :)

Konck knock is anybody here?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Where is file with category pagination view?

Post by Jan »

Hi,

view.html.php

$tmpl['pagination'] = &$model->getPagination(1); ....

model -> category

$this->_pagination = new PhocaGalleryPaginationCategory .... (called from \administrator\components\com_phocagallery\libraries\phocagallery\pagination\paginationcategory.php)

Jan
If you find Phoca extensions useful, please support the project
Nash
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 13 Dec 2009, 02:41

Re: Where is file with category pagination view?

Post by Nash »

hi guys,

i just installed phoca gallery and now messed around over 5 hours uploading pictures and everything and get it working. first i got the problem that there was now pagination showing in the gallery or anywhere else, i fixed that problem allready.

but now i wanna change the layout of the pagination.

right now it looks like this:
Display Num << Start < Prev 1 2 Next > End >> Page 2 of 2
but the problem is my site is to small to fit it all in, i would like to have it like this:
Display Num
<< Start < Prev 1 2 Next > End >> Page 2 of 2
is it also maybe possible that i center the "display num" in the line. but i need the line break

how can i do it and in which file?

thank you very much.

btw i using phoca gallery 2.6.1
joomla 1.5.15


Update:

now i have a another problem

i enabled the picture rating but if i click on one of the stars, the picture opens in highslide mode but in the parameters of phocagallery i selected shadow box. so that means, the rating doesnt work anymore. how can i change it, i didnt modified any files. only played with the parameters.
it was working before i am sure. because i tried it. can some of the phoca gallery plugins or modules cause this problem?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Where is file with category pagination view?

Post by Jan »

Hi,

1) Pagination is made by view (category or categories view), category or cateogries model, Phoca Gallery Pagination which extends JPagination, see template of e.g. category view to change the basic design: components/com_phocagallery/views/category/tmpl/default.php

2) Images can be rated in detail window but only with some methods (JS standard Popup, Modal box, Highslide JS) These are iframe method and can display the html in detail. Other methods (Modal Box (image only), Shadow Box, JAK, Highslide JS (image only) can display only image nothing more) So if you set e.g. Shadowbox, for the rating (but for other actions too, e.g. map, exif info) the iframe needs to be used, so in case shadowbox, the modal box is used for rating.

Jan
If you find Phoca extensions useful, please support the project
Nash
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 13 Dec 2009, 02:41

Re: Where is file with category pagination view?

Post by Nash »

hi thanks for the reply,

i have a question to 2:

i selected shadowbox to open the pictures and it works fine. if i then click for example on the geotagging icon or comment icon it opens the modal box (i guess) for these thinks.

if i set detail window to highslide jS also the geotagging and everything opens with highslide JS.
thats all working fine,

but the problem is... it doesn't matter to what i set the detail view. if i click on the stars below the picture, a highslideJS popup opens but it shows the picture and description not the ratingwindow.

so what do i wrong?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Where is file with category pagination view?

Post by Jan »

Hi, I am testing it now and if I set:

- Shadowbox - then clicking on stars open modal box with stars (this is correct)
- Highslide JS (image only) - then clicking on stars open Highslide JS (which is correct too).

No idea what can be wrong there :( :idea:
If you find Phoca extensions useful, please support the project
Post Reply