User tests: Successful: Unsuccessful:
I've added in random ordering in this module since it's something I think should be in the core and it's one of the first things I change in new Joomla installations.
Labels |
Added:
?
|
modules/mod_articles_category/mod_articles_category.xml
Title |
|
There are no test instructions for previous state as there was no random ordering,
In the new situation one can choose "Random" (if it also gets pulled) in ordering at the backend and the selected articles from mod_articles_category will be shown randomly.
Category | ⇒ | Modules |
I added the other options into this one. It should now be sufficient to add the "Random" ordering option to the Articles Category module.
Labels |
Added:
?
?
|
Sorry but I am confused. You have added an options called Random to an option
"Article Field to order by"
So that definitely isnt the correct place for it
Would it be better to place it in the field below
"Ordering Direction"
Although that would mean that it was renamed to just Ordering
Unfortunately this will not work in Postrges which does not have a rand function
Status | Pending | ⇒ | Information Required |
Labels |
@xaddict Thanks for your contribution. The last comment on this comes from myself stating that it cannot be accepted as is because the code doesnt work with Postgres.
Are you able to update the code so that it will? If not then this will have to be closed
You can go ahead and close this. I'm doing this via a custom written module
now which supports random ordering, offset (take 10 items, but only show
the last 5) and splitting (one module shows items 1-3, another one 4-6, the
last shows random items but not 1-6)
On Thu, 12 Nov 2015 at 16:06 Brian Teeman notifications@github.com wrote:
@xaddict https://github.com/xaddict Thanks for your contribution. The
last comment on this comes from myself stating that it cannot be accepted
as is because the code doesnt work with Postgres.Are you able to update the code so that it will? If not then this will
have to be closed
This comment was created with the J!Tracker Application
https://github.com/joomla/jissues at issues.joomla.org/joomla-cms/6648
https://issues.joomla.org/tracker/joomla-cms/6648.—
Reply to this email directly or view it on GitHub
#6648 (comment).
Closing per request and since it has open issues anyway.
Status | Information Required | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-11-25 10:00:50 |
Closed_By | ⇒ | Bakual | |
Labels |
If there is a willing to make it work on multi database you can use "random" as option value and implement it later with
case 'random' :
$orderby = JFactory::getDbo()->getQuery(true)->Rand();
break;
Please provide full test instructions otherwise people will just ignore it.
A good starting point would be to state which module it is that you have edited
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6648.