Custom Frontpage

Info Required Modules: View Field View

A. Create Attachment view

Step 1 Go to Structure > Views > Click "Add new view" link to create "Attachments" view following properties:

front_view_attach

Step 2 Click "Continue and edit" button. Attachments view will be displayed following properties:

Step 3 At "FIELDS" area, click "Add" link > Add "Content: Image" field with following properties:

Step 4 At "FIELDS" area, click "Add" link > Add "Content: Body" field with following properties:

Step 5 At "FIELDS" area, click "Add" link > Add "Content: Post date" field with following properties:

Step 6 At "FIELDS" area, click "Rearrange " link and set following properties:

Step 7 At "FIELDS" area, click "Add" link > Add "Content: Type (article)" field with following properties:

Step 8 At "RELATIONSHIPS" area, click "Add" link > Add "Content: Taxonomy terms on node" field with following properties:

Step 9 At "CONTEXTUAL FILTERS" area, click "Add" link > Add " Taxonomy term: Name" field with following properties:

Step 10 At Attachment view, create attachment with following step:

Step 11 Attachment view will be opened with following properties:

Creat front_view

Step 12 In FORMAT area, Click Unformatted list link and set following properties:

Creat att_1 view

Step 13 In PAGER area, Click Items to display link and set following properties:

Creat att_1 view

Step 14 Click "Save" view buton

B. Create Custom FrontPage view

Step 1 Go to Structure > Views > Click "Add new view" link to create "Custom FrontPage" with following properties:

view_custome_creat

Step 2 Click "Continue and edit" button. Custom FrontPage view will be displayed following properties:

Step 3 In "FORMAT" area click "setting" link and set following properties:

Step 4 At "FIELDS" area, click "Add" link > Add " Global: View" field with following properties:

Step 5 At "FIELDS" area, click "Add" link > Add " Global: View" field with following properties:

Step 6 At "RELATIONSHIPS" area, click "Add" link > Add "Taxonomy term: Content using Categories" field and set following properties:

Step 7 At "FIELDS CRITERIA " area, click "Add" link > Add " Taxonomy vocabulary: Machine name" field with following properties:

Step 8 At "FIELDS CRITERIA " area, click "Add" link > Add " Content: Categories (field_categories)" field with following properties:

Step 9 At "Use aggregation" area set following properties:

Step 10 At "Path settings" area, set following properties:

Step 11 Go to "Configuration > Site information " set bellow properties:

Step 12 Click "Save configuration" button

C. Show Certain Categories

Info Custom FrontPage view could be customized to show only certain categories. However, at least 4 categories should be shown, otherwise the page layout will not look nice. Below are instructions:

Step 1 Go to Views > Edit Custom FrontPage view

Step 2 At Page tab, go to Filter Criteria and add Taxonomy term: Name with following configuration:

  • Operator: Contains any word
  • Value: [Enter name of categories you want to show. Each value is separated by a comma]

Step 3 Save view