Hi,
I'd like to remove the 'sort by rating' and 'sort by comments' options in the category images view (pagination) without removing it entirely (I want to keep the 'sort by filname' etc.).
Tried to search for the answer in the Documentation and forums but failed ;(
I'm on Joomla 1.7.3 and PhocaGallery component (only, no plugins...) v 3.1.1
Any help aprreciated,
Shh
Remove 'sort by rating' and 'sort by comments'
-
Shh
- Phoca Member

- Posts: 20
- Joined: 31 Dec 2011, 21:42
- Jan
- Phoca Hero

- Posts: 49150
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Remove 'sort by rating' and 'sort by comments'
Hi, then this needs to be customized in the code - depends on which exactly view you need to customize.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
Shh
- Phoca Member

- Posts: 20
- Joined: 31 Dec 2011, 21:42
Re: Remove 'sort by rating' and 'sort by comments'
It's the category view (all images from a single category). I've tried to find the correct piece of code but it's just a bit too big for me to grasp at once 
Shh
Shh
-
Shh
- Phoca Member

- Posts: 20
- Joined: 31 Dec 2011, 21:42
Re: Remove 'sort by rating' and 'sort by comments'
Sorry about the bump earlier, Jan, missed that part of the rules I guess...
And because I cannot reply to your PM (too few posts) I'll reply here.
My original question stands - how can I remove sorting options.
I assumed Your post was a clarification request (what view needs to be customised?) to wich I replied - category images view.
My bad, I should have added one sentence - 'Could you tell me where to look for the proper lines of code?'
Anyway - sorry for the previous bump - that will not happen again
Best regards,
Shh
And because I cannot reply to your PM (too few posts) I'll reply here.
My original question stands - how can I remove sorting options.
I assumed Your post was a clarification request (what view needs to be customised?) to wich I replied - category images view.
My bad, I should have added one sentence - 'Could you tell me where to look for the proper lines of code?'
Anyway - sorry for the previous bump - that will not happen again
Best regards,
Shh
- Jan
- Phoca Hero

- Posts: 49150
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Remove 'sort by rating' and 'sort by comments'
Hi, then see:
administrator\components\com_phocagallery\libraries\phocagallery\ordering\ordering.php
you can add there some behaviour to return nothing e.g. (for ordering you need) but it can affect all views so you will need to add some if clause e.g. for frontend and for specific view.
Jan
administrator\components\com_phocagallery\libraries\phocagallery\ordering\ordering.php
you can add there some behaviour to return nothing e.g. (for ordering you need) but it can affect all views so you will need to add some if clause e.g. for frontend and for specific view.
Jan
If you find Phoca extensions useful, please support the project
-
Shh
- Phoca Member

- Posts: 20
- Joined: 31 Dec 2011, 21:42
- Jan
- Phoca Hero

- Posts: 49150
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Remove 'sort by rating' and 'sort by comments'
Ok
If you find Phoca extensions useful, please support the project