Page 1 of 1

category order not working

Posted: 20 Jun 2012, 06:21
by fioryp
I have put on my left a phocagallery module to show 25 category with image

The category are not ordered with my settings but by id.
All my settings make no changes!
I can set to order by date, by name but when i see my site there is no changes.

i have try with a phocagallery tree module and i see the correct order!!!

website is
http://www.afferniandrea.com
i have the same problem both in left and in center module.
images are not in the correct oder
in backend i have put category in exact order.
In module parameter ,when i have to choose the categories i want to display, i see them in correct order!

i have made a test and published a tree menu and the category are listed in correct order
why the images in the normal module are ordered only by id??
can i cange in the code?? Where??

also in
http://www.afferniandrea.com/index.php/press.html
i have add a category and instead to be the first image was last image!!
all changes in parameter settings will not make any changes seems not working order is by id and there is no way to change!!

I want to set exact order i have put in backend

I have not subcategory!!

Please i need help!!
I use phocagallery 2.8
Thanks

Re: category order not working

Posted: 26 Jun 2012, 23:06
by Jan
Hi, did you set the ordering in parameters of menu link to gallery?

Re: category order not working

Posted: 26 Jun 2012, 23:10
by fioryp
yes certainly i can set one of 10 parameter and when i see the site no changes happen seems that order i give will not set any changes in frontend

Re: category order not working

Posted: 22 Aug 2012, 09:50
by Cast-Art
Go to components/com_phocagallery/models/categories.php
Change for instance the code in line 28 (Phoca Gallery 3.1.5)

from

$category_ordering = $paramsC->get( 'category_ordering', 1 ); /* Ordering Ascending */

to

$category_ordering = $paramsC->get( 'category_ordering', 4 ); /* Title Descending */

This works

The other values are:
value=1 Ordering Ascending
value=2 Ordering Descending
value=3 Title Ascending
value=4 selected="selected">Title Descending
value=5 Date Ascending
value=6 Date Descending
value=11 Rating Count Ascending
value=12 Rating Count Descending
value=13 Rating Ascending
value=14 Rating Descending
value=15 Hits Ascending
value=16 Hits Descending>

Re: category order not working

Posted: 30 Aug 2012, 08:45
by Cast-Art
The result of settings
- Categories Image Ordering "Titel descending"
- Category Image Ordering "Titel descending"
is order "title ascending"(value 3)

I decided to add a hardcoded value in line 31 in categories.php

28 $category_ordering = $paramsC->get( 'category_ordering', 2 );
29 $context = $this->_context.'.';
30 // hard gecodeerde categorie waarde 4 title descending
31 $category_ordering = 4;

It works

Re: category order not working

Posted: 08 Jan 2013, 14:10
by phidias81
Same problem here. I want to order categories (albums) from the most recent to the oldest, in eample here http://www.nomadtravellers.com/photo-stories but whatever I choose, the order is not changing. I also tried to change the parameter in Go to components/com_phocagallery/models/categories.php but still no effect.
I have joomla 2.5.8 and phoca gallery 3.1.4

Re: category order not working

Posted: 11 Jan 2013, 22:29
by truth16
Cast-Art wrote:Go to components/com_phocagallery/models/categories.php
Change for instance the code in line 28 (Phoca Gallery 3.1.5)

from

$category_ordering = $paramsC->get( 'category_ordering', 1 ); /* Ordering Ascending */

to

$category_ordering = $paramsC->get( 'category_ordering', 4 ); /* Title Descending */

This works

The other values are:
value=1 Ordering Ascending
value=2 Ordering Descending
value=3 Title Ascending
value=4 selected="selected">Title Descending
value=5 Date Ascending
value=6 Date Descending
value=11 Rating Count Ascending
value=12 Rating Count Descending
value=13 Rating Ascending
value=14 Rating Descending
value=15 Hits Ascending
value=16 Hits Descending>
Hi,

How do I change line 28? I cannot even open the file?

Re: category order not working

Posted: 11 Jan 2013, 22:59
by Benno
@truth16

1.) Download the file local to your PC with help of a FTP-Client like e.g. FileZilla is.
http://filezilla-project.org/download.php
2.) Edit the file with help of an editor like e.g. Notepad++ is.
http://notepad-plus-plus.org/download/v6.2.3.html
3.) Load up the edited file with help of e.g. Filezilla.

Kind regards,
Benno