order by custom field: little bug + it s solution

More
12 years 1 month ago #29733 by weCombine
hi there,

on our flexicontent 2.0.0 RC9 r1514 we have found a little bug and the solution to it.

in a category you can override the primary items ordering with ordering by custom field.

if custom field ist choosen, the second order should be by title. but here is the bug, it doesnt work.
the solution therefor is:

component/com_flexicontent/models/category.php L496.

change

$orderby .= $filter_order!='i.title' ? ', c.title' : ''; // Order by title after default ordering

into

$orderby .= $filter_order!='i.title' ? ', title' : ''; // Order by title after default ordering

cheers
bart

Please Log in or Create an account to join the conversation.

More
12 years 1 month ago #29736 by micker
thanks for FIX

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
12 years 1 month ago #29737 by ggppdk
OK but it should be i.title not title

$orderby .= $filter_order!='i.title' ? ', i.title' : ''; // Order by title after default ordering


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #41474 by tarja
hi, i'm working on database system with flexicontent and i have a lot of articles with different values in one field... i know how to order it by this field, but is it possible to change the second order? i don't want to order it by title, but by another field.

thankyou

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #41480 by ggppdk
Hello

this is not in immediate plans, but allowing frontend user to select(=override) ordering by various custom fields

(currently user-overridden category order only includes core properties)


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.594 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline