Page 2 of 2

Re: Max number of images?

Posted: 11 Sep 2008, 14:06
by Jan
Ok :wink:

Re: Max number of images?

Posted: 12 Sep 2008, 05:41
by enteraja
thanks Jan for reply, is use the phoca gallery tree module, only the pagination not show,
but if i add "menu link" the pagination show, like your demo sites the pagination and the tree menu apears
left and right position.

https://www.phoca.cz/documentation/index ... -menu-link
if the "menu link" unpublish the pagination not show again, must be publish

i want to my sites design ONLY 1 tree menu modul not more and the pagination show, how to setup them ?

regrads

Re: Max number of images?

Posted: 12 Sep 2008, 11:43
by Jan

Re: Max number of images?

Posted: 15 Sep 2008, 11:35
by enteraja
thank for reply!

i think the subject threat similiar
viewtopic.php?f=1&t=1528&p=9086&hilit=p ... dule#p9086

I have 45 images in category and only 20 are displayed on ma gallery page.
because General Settings - Pagination Default Value is 20, by the way
the start-prev-next-last button doesn't show, for showing the pagination i must create link
like Jan's suggestion in
https://www.phoca.cz/documentation/index ... -menu-link

the answer is :
if i not create the menu link, only the phoca gallery tree module appear in my web pages not both (tree and link)
i cannot use the parameter-basic pagination = show in phoca tree module, how to change only
tree module and the pagination appear ?

thanks

Re: Max number of images?

Posted: 15 Sep 2008, 11:56
by caro84g
About setting up a menu-item, which must not be shown see the link Jan posted in the above message or see this post:
viewtopic.php?f=9&t=1604#p8793

Re: Max number of images?

Posted: 16 Sep 2008, 07:35
by enteraja
thanks caro84g for psot, but it not works for me, because i want use the tree module, not link menu.
so i change the code in file "components\com_phocagallery\views\category\tmpl\default.php" liKe this :

-------------------------------------------------------
<?php
if (count($this->items)) {
echo '<div><center>';
if ($this->params->get('show_pagination_limit')) {

echo '<div style="margin:0 10px 0 10px;display:inline;">'
.JText::_('Display Num') .'&nbsp;'
.$this->tmpl['pagination']->getLimitBox()
.'</div>';
}

//THIS ADD REMARK LINE
// if ($this->params->get('show_pagination')) {
echo '<div style="margin:0 10px 0 10px;display:inline;" class="sectiontablefooter'.$this->params->get( 'pageclass_sfx' ).'" >'
.$this->tmpl['pagination']->getPagesLinks()
.'</div>'

.'<div style="margin:0 10px 0 10px;display:inline;" class="pagecounter">'
.$this->tmpl['pagination']->getPagesCounter()
.'</div>';
//THIS ADD REMARK LINKE
// }
echo '</center></div>';
--------------------------------------------------------------------

change code it works for me,
why we use only one (the tree or link menu) because if we have both
the pagination's link menu 20 image (global parameter)
and the tree menu (component parameter) is set 5 image.
if the user click tree show every 5 image and if the user click from link menu
image will show every 20 image, hik hik....... :cry:

and the change above remark line only for always show the first/next/prev/last button for every iamge in tree menu without link menu

thanks for wonderfull code !

bravo phoca

Re: Max number of images?

Posted: 16 Sep 2008, 13:19
by Jan
if the user click tree show every 5 image and if the user click from link menu
image will show every 20 image, hik hik
.... maybe because both links have other id and other parameters component setting :idea: :(