Notice

This old forum is now only available for consultation/read. User accounts on this old website are blocked.
Please create a new account on seblod.com and use the new forum http://www.seblod.com/community/forums.
Apologies for this perturbation and thank you for your understanding!
Welcome, Guest
Username Password: Remember me

How to Shuffle & Random order list template
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: How to Shuffle & Random order list template

How to Shuffle & Random order list template 2 years, 1 month ago #1

  • anjo
  • ( User )
  • OFFLINE
  • Junior Boarder
  • Posts: 23
Hi all,

How can I add final Shuffle & Random order options to a list template the same as for the list SEBLOD module?

Thanks
Anjo

Re: How to Shuffle & Random order list template 2 years, 1 month ago #2

  • anjo
  • ( User )
  • OFFLINE
  • Junior Boarder
  • Posts: 23
Hi hope someone can help,

I would like to shuffle & Random results within a list template.

Can this be done by creating an order field in admin? If so please post example or code on how to.

Will Shuffle & Random results for search template be available in future version of Seblod?

thanks
Anjo

Re: How to Shuffle & Random order list template 2 years, 1 month ago #3

  • anjo
  • ( User )
  • OFFLINE
  • Junior Boarder
  • Posts: 23
I think I got it to work by adding code from the modules/mod_cck_list/mod_cck_list.xml to components/com_ckk/views/list/tmpl/default.xml after line 58 when ordering starts


 <field name="ordering2" type="list" label="MOD_CCK_LIST_CONFIG_ORDERING2" default="" description="MOD_CCK_LIST_CONFIG_ORDERING2_DESC" class="inputbox">
<option value="">MOD_CCK_CONFIG_LIST_OPTION_NONE</option>
<option value="random">MOD_CCK_CONFIG_LIST_OPTION_RANDOM</option>
<option value="shuffle">MOD_CCK_CONFIG_LIST_OPTION_SHUFFLE</option>
<option value="random_shuffle">MOD_CCK_CONFIG_LIST_OPTION_RANDOM_SHUFFLE</option>
</field>


This gave me the option to add random & Shuffle in Basic Options (CCK) when I create a menu type List & Search

I think this option should be available in seblod default installation.

Re: How to Shuffle & Random order list template 1 year, 12 months ago #4

  • joechan
  • ( User )
  • OFFLINE
  • Senior Boarder
  • Posts: 55
Hi,

Are there any solution ?
Random order can be using to list "related articles"
It won't let your articles composed early "sink"

Thanks for help
Joe

Re: How to Shuffle & Random order list template 1 year, 8 months ago #5

I also need this option for the Search & List.
I´d like to random the articles each refresh on page.
  • Page:
  • 1
Time to create page: 0.19 seconds