Hello everybody,
I were created content types News from News articles, Press Releases and Doccument. so I were created content for that content type. I were created view Listing with filter: node type: (News articles, Press Releases, Doccuments).
I were created page listing content in the above view. I want page listing show result sample:
(Group content by content type).

News articles
News article 1
News article 2
News article 3
Press Releases
Press Releases 1
Press Releases 2
Press Releases 3
Doccuments
Doccument 1
Doccument 2
Doccument 3

it sample http://www.amp-vaccinology.org/media-publications
Please help me!
Thanks.

Comments

jayakrishnanj’s picture

Did u try using Style options settings in Views.

Example: If you select HTML List as Style option in your view, then click on the settings icon(Icon next to the Link 'HTMl List').

It will show you the option to Group by , Add one field as Type in the fields list and Select Type in this Group OPtions..

let me know if that helps !

:)

-J

Drave Robber’s picture

The example you supplied does not seem to be a single view (examine page source) – it's created by placing several views on a node page using Insert View (presumably), Viewfield or some other module like that. (A similar effect can be achieved in an even more simple manner – by placing several block displays in content area and limiting their visibility accordingly, but that will quickly turn your block admin page into a mess, and having zillions of blocks is not a good idea generally)

Perhaps combining several simple views instead of creating a complex one could work for you, too.

hoangbien’s picture

Thanks all,
I created node:type (checked: Exclude from display) in the field. so I was config style (Group field: selected node:type). then ok.

Smaug’s picture

It's worth noting for others that for the above to work, you need to have the row style set to fields and the field you are grouping by added to the fields list. If it's set to node, then the only options you get for HTML list settings are ordered and unordered.