Page 1 of 1
Overwrite sorting settings
Posted: 12 Sep 2012, 22:12
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.
Re: Overwrite sorting settings
Posted: 19 Sep 2012, 14:02
by Jan
Re: Overwrite sorting settings
Posted: 23 Sep 2012, 22:12
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.
Re: Overwrite sorting settings
Posted: 25 Sep 2012, 09:59
by Jan
Hi, try to recheck all the ordering parameters, there are more of them. They are similar but includes other features.
Jan
Re: Overwrite sorting settings
Posted: 27 Sep 2012, 19:57
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.

Re: Overwrite sorting settings
Posted: 29 Sep 2012, 15:57
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.
Jan
Re: Overwrite sorting settings
Posted: 30 Sep 2012, 10:33
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..
Re: Overwrite sorting settings
Posted: 01 Oct 2012, 00:48
by Jan
So then everything should be ok, testing it on my test server without any problem for now

???