Page 1 of 2

View Num. of page....only if...

Posted: 05 Jan 2012, 15:05
by Ale1x
[frontend]
It's possibile to view label "View Number of page..." ONLY if there is more than 1 page?
If there is only ONE page. This label is useless.

Can be removed / disablet or view only with more pages?

Re: View Num. of page....only if...

Posted: 06 Jan 2012, 03:13
by SonRiab
First of all: Provide more informations about your environment! Which version of PD do you use?
Second: For me the pagination is not shown if there is only one site! (PD 2.1.4)

Re: View Num. of page....only if...

Posted: 07 Jan 2012, 20:08
by Ale1x
SonRiab wrote:First of all: Provide more informations about your environment! Which version of PD do you use?
Second: For me the pagination is not shown if there is only one site! (PD 2.1.4)
My versione PD: 2.1.4

I have only 2 files displayed but at the bottom of pages, there is: "Show page number: 5, 10, 15, 20, 50, All".
I would like to delete/hide this label because I have only one page.

Re: View Num. of page....only if...

Posted: 07 Jan 2012, 20:52
by SonRiab
This is used to change the number of downloads displayed per page!

Re: View Num. of page....only if...

Posted: 07 Jan 2012, 21:11
by Ale1x
Sure, but I have only 2 file and I don't need to view that label. I thought that menu was viewed automatically when I least 2 pages and not if I have only 1 page.
For me is useless.

Re: View Num. of page....only if...

Posted: 08 Jan 2012, 14:35
by SonRiab
The easiest way is to add a css rule. Something like this should work:

Code: Select all

#phoca-dl-category-box .pagination .pdinline { display: none; }
Now this option is never displayed!

Re: View Num. of page....only if...

Posted: 08 Jan 2012, 16:47
by Ale1x
SonRiab wrote:The easiest way is to add a css rule. Something like this should work:

Code: Select all

#phoca-dl-category-box .pagination .pdinline { display: none; }
Now this option is never displayed!

I added the code in line 93 of default.php, but nothing has changed

Re: View Num. of page....only if...

Posted: 08 Jan 2012, 17:06
by SonRiab
Typo! ^^

Code: Select all

#phoca-dl-category-box .pagination .pginline { display: none; }
Add this to custom.css file located in the assets folder!

Re: View Num. of page....only if...

Posted: 08 Jan 2012, 17:46
by Ale1x
Nothing.

File custom.css is:
/*
Phoca Download
https://www.phoca.cz/
https://www.phoca.cz/phocadownload
*/

I added:
/*
Phoca Download
https://www.phoca.cz/
https://www.phoca.cz/phocadownload
#phoca-dl-category-box .pagination .pdinline { display: none; }
*/


It's all the same

Re: View Num. of page....only if...

Posted: 08 Jan 2012, 18:07
by SonRiab
Lines between /* */ are comments and are not used, so move the code under these lines!

/*
Phoca Download
https://www.phoca.cz/
https://www.phoca.cz/phocadownload
*/

#phoca-dl-category-box .pagination .pdinline { display: none; }