1

I had searched solution for my problem, but I didn’t found anything good.

I have custom a node type Client with Field Collection Product.

My field collection has two fields:

  1. name of the product
  2. date value

In the view I can see Client fields name & surname and field collection Product & date value.

How can I sort by date value?

0

Duplicate of Sort view items by field collection's field value (But it's answer is not accepted yet)

You can use field_collection_views module which it creates a default View of field collection type. Its address is /admin/structure/views/view/field_collection_view and I recommend you clone this View and configure the rest of the options. The Fields section contains a few items that are very helpful, like Host Entity ID, Host Entity Type and ... .

enter image description here

3
  • I have tried also with filed collection views. If I use field collection view, I can’t see fields form client node. – Dimitrij Reja Aug 4 '15 at 7:54
  • what is fields form client node? – M a m a D Aug 4 '15 at 8:07
  • client node has fields (name, surname, date of birth, etc) – Dimitrij Reja Aug 4 '15 at 8:08
0

You need to refer to this post. At the bottom of the post you can find a solution. You can sort by order date, which works like a charm.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.