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.
Hi again,
I think it would be great to have this functionality, so for instance, we could move the ITEM ELEMENTS : MEDIA under Title in ITEM ELEMENTS : CORE. Currently, the rearrange fields option in views is not being respected for my media field(s), however, it is for title, pub-date, etc...
I will dig into the code this weekend , but I have a feeling you will beat me to it!
Thanks again for the great module and awesome support.
Comments
Comment #1
maciej.zgadzaj CreditAttribution: maciej.zgadzaj commentedIs there any valid reason why would you want to rearrange item elements? (And by "valid" I mean making something work what does not work with current element order?)
Comment #2
handlnbizz@gmail.com CreditAttribution: handlnbizz@gmail.com commentedReally, it's purely aesthetic, style related. Everything "works" fine.
Comment #3
maciej.zgadzaj CreditAttribution: maciej.zgadzaj commentedThen essentially "won't fix", sorry. As far as I know order of feed elements is not important at all, so everything should work fine. Perhaps at one point in the future when everything else is done and I feel really bored I will have a look into it as well, at the moment though there are lots of other things still waiting to be done, so I don't see any point to spending time on it.
Comment #4
maciej.zgadzaj CreditAttribution: maciej.zgadzaj commentedBtw, haven't tried, but probably moving channel/item groups within view style settings form could be achievable through updating module weights in "system" table. You might want to give it a try...
Comment #5
maciej.zgadzaj CreditAttribution: maciej.zgadzaj commented(Duplicate mobile comment deleted.)
Comment #6
handlnbizz@gmail.com CreditAttribution: handlnbizz@gmail.com commentedNo problem, it's not a major issue. Yes, you are correct, the order does not really matter in feeds. Interesting idea for the module weights- I may give that a try.
Thanks again
Comment #6.0
handlnbizz@gmail.com CreditAttribution: handlnbizz@gmail.com commentededited to add " in views"
Comment #7
neuquen CreditAttribution: neuquen commentedI was also interested in doing the same, and found another method of rearranging the fields:
I added in my own element using
MYMODULE_views_rss_item_elements()
which was inserted into the top of the $elements array. I just shifted it to the bottom using the above code.