where can I set the random sorting (category & entrys)?

More
10 years 5 months ago #47662 by holliday
Hello FlexiContent Fans :-)

I whish me the entries are sorted by random
I need your help
I've searched everything I have found nothing
"random sorting" is not in the list how can I turn?
sorry for my bad english :oops:

Many many thanks to the developers for FLEXIcontent,i'm excited!
kind regards
Mike

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

More
10 years 5 months ago #47669 by ggppdk
Hello

- if you are using FLEXIcontent for building a new web-site or you are on J3, it is better to use:

v2.2.0 BETA r1910+:
www.flexicontent.org/forum/index ... =viewtopic




- at some point we examined adding random ordering with

order by RAND()
(as some other components do)
... but

1. it is somewhat slow so we decide to use an alternative, and implement it later
2. and user should disable pagination otherwise clicking on next page, will return some results of previous pages


there is no option for random ordering in current version, if this very important you could hack the flexicontent helper file that handles ordering (i will tell you about it) but you will have to restore the change every time you upgrade

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.

More
10 years 5 months ago #47677 by holliday
Hello
best thanks for your message.
I hope I have understood everything correctly.
What is better for Flexifontent, Joomla 2.5 or 3.0?
Is that correct? Many modules are not yet available for Joomla 3.0?
I have now the beta version installed where can I find the random sorting? I am very grateful if you show you me how I can turn radom
it does not bother me if I sometimes have to reinstall every main thing is it works!
My boss wants this function and I want to flexi content :D BW Mike
Ps sorry for my english

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

More
10 years 5 months ago #47690 by ggppdk
Hello

a temporary hack, (please avoid hacking FLEXIcontent core files !!!) is to replace an ordering tha you do not use with the random order

e.g. replace the ID order
edit:
components/com_flexicontent/classes/flexicontent.helper.php

replace:
Code:
case 'id': $order_col = $i_as.'.id'; $order_dir = 'DESC'; break;
with:
Code:
case 'id': $order_col = ' RAND() '; $order_dir = 'DESC'; break;

set your ordering to be ITEM ID and ... test

but remember to restore hack on every FLEXIcontent upgrade


-- 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 5 months ago #47691 by micker
hello
joomla 3.3 is now the stable version and flexicontent is already compatible, but not stable yet (waitting some return on beta) you can start your project on this way
regards

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.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.858 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