Regarding ordering by custom field

More
10 years 2 months ago #49371 by jrodgar
a) On the frontend dont appear "Order by <fieldname>" but "Default order"

b) Fields of type "Select", obtained from a query, are being ordered by its id, no its text. For example, suppose a country list

select countryid, countryname from countries

Later, when ordering a category by the Country field, it will order by Countryid, not Countryname

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7

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

More
10 years 2 months ago #49372 by ggppdk
Hello

currently, the custom field order will not appear in frontend ordering selector


-- 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
10 years 2 months ago #49374 by jrodgar
I see, I´ll do a workaround then

What about the second point?

b) Fields of type "Select", obtained from a query, are being ordered by its id, no its text. For example, suppose a country list

select countryid, countryname from countries

Later, when ordering a category by the Country field, it will order by Countryid, not Countryname


Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7

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

More
10 years 2 months ago #49378 by ggppdk
Hello

yes,
this is the way it is implemented (it is not a bug)

-- because the value is stored in the DB ! and not the label, maybe we need to update our description to add a warning for this


if you want to order by text then you need to have a select with options that have

value = label

Regards


-- 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.526 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