category order not working

Phoca Gallery - image gallery extension
fioryp
Phoca Member
Phoca Member
Posts: 25
Joined: 21 Feb 2012, 00:57

category order not working

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: category order not working

Post by Jan »

Hi, did you set the ordering in parameters of menu link to gallery?
If you find Phoca extensions useful, please support the project
fioryp
Phoca Member
Phoca Member
Posts: 25
Joined: 21 Feb 2012, 00:57

Re: category order not working

Post 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
Cast-Art

Re: category order not working

Post 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>
Cast-Art

Re: category order not working

Post 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
phidias81
Phoca Enthusiast
Phoca Enthusiast
Posts: 70
Joined: 05 Jan 2012, 01:20
Contact:

Re: category order not working

Post 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
truth16
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 11 Jan 2013, 22:26

Re: category order not working

Post 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?
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9972
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: category order not working

Post 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
Post Reply