Dynamic reordering ?

More
9 years 2 months ago - 9 years 2 months ago #56287 by nowid50
Dynamic reordering ? was created by nowid50
Hello,

I am wondering if Flexicontent can order according to some submitted sql.
For instance, I have a field that contains GPS location for an item and I would like to be able to order the items according to the user location so that they can have the closest item they want.
I know the sql code to compute the metric distance between 2 GPS points but I don't know where to put it.

Can someone help me ?
Last edit: 9 years 2 months ago by nowid50.

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

More
9 years 2 months ago - 9 years 2 months ago #56290 by micker
Replied by micker on topic Dynamic reordering ?
you need a pro dev for a plugin for this ....

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]
Last edit: 9 years 2 months ago by micker.

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

More
9 years 2 months ago #56299 by ggppdk
Replied by ggppdk on topic Dynamic reordering ?
Hello

is it a text field ?

there is not an option for custom SQL code for ordering,
to do that would probably need:
- parameter for ORDER BY clause
- parameter of custom JOIN clauses
- parameter for an "AND" clause to append to the WHERE clause

possible but not implemented


-- 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
9 years 2 months ago - 9 years 2 months ago #56379 by nowid50
Replied by nowid50 on topic Dynamic reordering ?
I am actually a developper.

The field is custom made by me, it allows the user to place a marker directly on a google map.

I already more or less done it for a client through a custom module. (You can see it at www.ot-dreux.fr/ by using a mobile)

But it is "emulated" because there is a custom query that find and sort items' ids according to position and distance. Those id are used to load the data and render it with templating.

I would like to have it working for components view without "hacking" something. Too bad it is not possible yet.
Last edit: 9 years 2 months ago by nowid50.

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

More
9 years 2 months ago #56785 by nowid50
Replied by nowid50 on topic Dynamic reordering ?
I'm upping this topic because I'm going to need this very soon.

I'm going to hack the core but I would like to have a cleaner way to do dynamic reordering.

Thanks in advance :)

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

More
9 years 2 months ago #56793 by ggppdk
Replied by ggppdk on topic Dynamic reordering ?
Hello

so you want to add
- custom join
- custom AND clause for WHERE
- custom ORDER clause

to category view and to universal content module


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