Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Using mysite I have created three basic blocks on my homepage, all filled with posts of a certain type:
- Website Pages (type = page)
- Blog Posts (type = blog)
- Side Notes (type = note, created myself)
Is there a sort order for the elements (posts) within each item (block)?
And is it possible to manipulate the sort order (date, weight, etc)?
Thanks,
Marc
Comments
Comment #1
Marc Bijl CreditAttribution: Marc Bijl commentedHmm,
it seems the sort order is "last modified on top".
So then remains:
Is it possible to manipulate the sort order?
Comment #2
agentrickardThere is generally no way to modify the sort order without altering the code.
This is a design decision.
It is possible, in theory, to allow users to set options for sorting each element. That would be a feature request.
Comment #3
agentrickardOn the other hand, if you use Views, you can create Views that are sorted however you wish, and then load those Views into MySite.
Comment #4
Marc Bijl CreditAttribution: Marc Bijl commentedGood one, thanks!
I'll try views and see how it works ;)
Cheers,
Marc (from NL ;)
Comment #5
Marc Bijl CreditAttribution: Marc Bijl commentedHi Ken,
As I prefer (that is: love) to use the standard features of Mysite module, I thought: let's make it a feature request.
In my opinion, it would be nice to give users at least the option to order elements by submission date.
So, would be great if you see some chance to add this functionality.
I'll dive into the code and do my best, but as I'm not a programmer... We'll see ;)
Thanks in advance.
CU, Marc
Comment #6
agentrickardFiling as a feature request against HEAD. This is, to me, low priority but nice to have.
Comment #7
Marc Bijl CreditAttribution: Marc Bijl commentedOk, thanks a lot.
Comment #8
agentrickard