H
H
hulktoster2021-09-24 13:21:59
Drupal
hulktoster, 2021-09-24 13:21:59

What is the best and most correct way to create links in the header menu for different news sections?

I am making a news site, in the header menu of this site there should be links to three sections of news, such as: politics, sports, culture. By clicking on which you can see only the news of a certain section on a separate page. In addition, the news of all sections should be placed on the main page.

I have options on how to implement the necessary:

​​Option 1: Create three different Content types : politics, sports, culture. And for each Content type, create your own Views that will display the news of only one section on a separate page and set the views settings to create links to these pages in the header menu ( PAGE SETTINGS ->Create a menu link-> Menu: Main navigation ).

Option 2: Create one Content types News and a News dictionary for which to add terms : politics, sports, culture with their own url aliases. When creating news, add the appropriate term. Then in structure -> menu -> main navigation -> add link create links to these pages in the header.

Option 3: Create one views and one content types for all sections, and implement the links in the header as the second option.

What do you think? What is the best and correct way? Perhaps you can suggest some other options that you yourself use?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
archelon, 2021-09-24
@hulktoster

Content types are harder to maintain. Different types should be created only if they have big differences in templates, settings, different sets of fields, etc.
In your case, obviously the best way is through terms.
By the way, there is a module for automatically creating menu items in accordance with the taxonomy (convenient for a large number of terms).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question