Overwrite sorting settings

Phoca Gallery - image gallery extension
ebroekema
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 10 Sep 2012, 22:26

Overwrite sorting settings

Post by ebroekema »

Hey Everyone,

I was wondering if it is possible to overwrite the default settings for sorting of images.

I have one part of my website where I'd like to use ascending by date (set as default), and another part where I'd like it to be descending by date. I can see that sorting is an option (or parameter) when using 'images', but since I'd like to show the descriptions with images without having to go into detailed view I use the category view to link to a category.

So basically I have to options/questions:
- Is it possible to overwrite the default sorting settings when using category view?
- Is it possible to show images with descriptions without having to go into detailed view or using the category view?

Thanks in advance for any help.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Overwrite sorting settings

Post by Jan »

If you find Phoca extensions useful, please support the project
ebroekema
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 10 Sep 2012, 22:26

Re: Overwrite sorting settings

Post by ebroekema »

Jan,

First of all, thanks for your reply. It helped me a bit. I can now copy setting from the config.xml to the default.xml.

For the description settings this works fine, but for the sorting settings this somehow doesn't work. I tried to copy all different sorting settings and set them all to ORDER DECENDING. Somehow this doesn't override the default setting of Ordering Ascending..

For specific information, I used all the settings below:

<field name="categories_image_ordering" type="list" default="10" label="COM_PHOCAGALLERY_FIELD_CATEGORIES_IMAGE_ORDERING_LABEL" description="COM_PHOCAGALLERY_FIELD_CATEGORIES_IMAGE_ORDERING_DESC">

<field name="category_image_ordering" type="list" default="10" label="COM_PHOCAGALLERY_FIELD_CATEGORY_IMAGE_ORDERING_LABEL" description="COM_PHOCAGALLERY_FIELD_CATEGORY_IMAGE_ORDERING_DESC">

<field name="category_image_ordering_cv" type="list" default="10" label="COM_PHOCAGALLERY_FIELD_CATEGORY_IMAGE_ORDERING_CV_LABEL" description="COM_PHOCAGALLERY_FIELD_CATEGORY_IMAGE_ORDERING_CV_DESC">

<field name="category_ordering" type="list" default="1" label="COM_PHOCAGALLERY_FIELD_CATEGORY_ORDERING_LABEL" description="COM_PHOCAGALLERY_FIELD_CATEGORY_ORDERING_DESC">

<field name="image_ordering" type="list" default="1" label="COM_PHOCAGALLERY_FIELD_IMAGE_ORDERING_LABEL" description="COM_PHOCAGALLERY_FIELD_IMAGE_ORDERING_DESC">

Do you have any idea how I can make this Ordering setting work?

Thanks in advance.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Overwrite sorting settings

Post by Jan »

Hi, try to recheck all the ordering parameters, there are more of them. They are similar but includes other features. :idea:

Jan
If you find Phoca extensions useful, please support the project
ebroekema
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 10 Sep 2012, 22:26

Re: Overwrite sorting settings

Post by ebroekema »

Hey Jan,

Thanks again for you reaction, but I'm not entirely sure what you mean..

I have te following:
General Settings:
categories_image_ordering DATE DECENDING
category_image_ordering DATE DECENDING
category_image_ordering_cv DATE DECENDING
category_ordering DATE DECENDING
image_ordering DATE ASCENDING

Phoca Menu settings (imported via default.xml):
categories_image_ordering DATE DECENDING
category_image_ordering DATE DECENDING
category_image_ordering_cv DATE DECENDING
category_ordering DATE DECENDING
image_ordering DATE DECENDING

It keeps on showing all the categories (including the menu component) as DATE ASCENDING

So images ordering is only influenced by image_ordering and I can't override it by setting image_ordering tot DATE DESCENDING by menu properties.

:idea:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Overwrite sorting settings

Post by Jan »

Try to disable SEF and look at the Itemid parameter (id of menu link) if you have really the menu link you did set and if it works for the displayed site. :idea:

Jan
If you find Phoca extensions useful, please support the project
ebroekema
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 10 Sep 2012, 22:26

Re: Overwrite sorting settings

Post by ebroekema »

Hi Jan,

I have disabled SEF and got the following URL from the menu link:
/index.php?option=com_phocagallery&view=category&id=9&Itemid=110

So I use the Phocagallery :)
Make use of the category view (which is correct)
Show the category ID 9 (again, correct)
and your requested itemID 110 (ID of the menu link which is also correct)

I cannot see anything special from here..
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Overwrite sorting settings

Post by Jan »

So then everything should be ok, testing it on my test server without any problem for now :idea: ???
If you find Phoca extensions useful, please support the project
Post Reply