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

maciej.zgadzaj’s picture

Is 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?)

handlnbizz@gmail.com’s picture

Really, it's purely aesthetic, style related. Everything "works" fine.

maciej.zgadzaj’s picture

Status: Active » Closed (won't fix)

Then 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.

maciej.zgadzaj’s picture

Btw, 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...

maciej.zgadzaj’s picture

(Duplicate mobile comment deleted.)

handlnbizz@gmail.com’s picture

No 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

handlnbizz@gmail.com’s picture

Issue summary: View changes

edited to add " in views"

neuquen’s picture

Issue summary: View changes

I was also interested in doing the same, and found another method of rearranging the fields:

function MYMODULE_views_rss_item_elements_alter(&$elements) {
  $key = key($elements);
  $MYMODULE = array_shift($elements);
  $elements[$key] = $MYMODULE;
}

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.