1

i am attempting to fetch the records based on node reference fields into a content type page.

i added node reference fields "news" & "Articles" (and many more) into my "Industry" Content type:

image 1

Now i've created a view with a filter (Content type= industries). Find the snap of the view here:

enter image description here

i want to list down all the selected/inserted news and articles (along with their content data) into the view. (currently its fetching only titles but with lot of repetition of the titles from both content types.)

6
  • try adding content: Body in fields @Esar -ul-haq Qasmi Commented May 25, 2016 at 13:42
  • Thanks, i was absolutely missing this thing, but the other problem persists that is repetition, that is if there are 5 news and 10 articles, so the news are repeating with 10 articles. How to control this ? Commented May 25, 2016 at 14:36
  • select the checkbox Distinct under query settings in OTHER below Advanced @Esar -ul-haq Qasmi Commented May 25, 2016 at 14:47
  • I've done this thing, also tried Group by and aggregate fields options. but no luck. see here prntscr.com/b8aqr3 , the red pointed news are repeating every time with articles in views perview Commented May 25, 2016 at 15:02
  • Can this link help u drupal.stackexchange.com/questions/38450/… @Esar -ul-haq Qasmi Commented May 25, 2016 at 15:17

1 Answer 1

0

I think you can either construct your news and article views as attachments and attach them to your view, or you can bring the content for news and articles in field by field in the main view.

Using attachments might help you to end up with less repetition without having to use query aggregation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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