I am working with a view where the result needs to be ordered by a calculation field. The calculation field isn't going to be displayed as a field in the view, and the presentation style isn't going to be a table. Here's a first try at a patch to add this feature.

CommentFileSizeAuthor
#1 views_calc-731698-1.patch1.58 KBjromine

Comments

jromine’s picture

StatusFileSize
new1.58 KB

Patch for 6.x-1.3 attached.

Steve556’s picture

Thanks this is exactly what I need. Unfortunately, my view has some complicated relationships (I am trying to add the same field to itself generated from joins from two different content types and then sort it). I get the following error thrown out multiple time:

warning: Invalid argument supplied for foreach() in /home/goodbett/public_html/sites/all/modules/views_calc/theme.inc on line 178.

I am not a developer, I whilst I know some php I can't figure it out.

xandeadx’s picture

subscribed

Reox’s picture

sub

miro_dietiker’s picture

Status: Needs review » Fixed

Committed this to cvs.
Thank you for this contrib which was a missing part in implementation.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.