简体   繁体   English

Drupal8,如何在Drupal 8中创建类别和子类别以按类别分开博客?

[英]Drupal8 , How Create Categories and Sub categories in Drupal 8 to separate blog by categories?

please help me to do following things on DRUPAL8, give me the idea on this. 请帮助我在DRUPAL8上进行以下操作,请给我一些想法。

How Create Categories and Sub categories in d8 to separate blog by categories 如何在d8中创建类别和子类别以按类别分隔博客

Ex: - 
            1   Game                                - Main categorie
                    Cricket                         - Sub category
                        Sachin         - blog Title
                        kohli          - blog Title
                    FootBall                            - Sub category
                        Messi          - blog Title
                        Ronaaldo       - blog Title

        2   Movie                               - Main categorie
                tamil                           - Sub category
                    kabali         - blog Title
                    Sivaji         - blog Title
                    duet           - blog Title
                English                         - Sub category
                    Wanted         - blog Title
                    Jurasic Park   - blog Title
                    Die Hard       - blog Title
                Telungu                         - Sub category
                    okadu          - blog Title
                    Bussiness Man   - blog Title**

 /**
 * @file
 */
(function () {

  "use strict";

  // All the JavaScript for this file.

})();

For this my opinion is that the best way would be to go with Taxonomy. 为此,我认为最好的方法是采用分类法。 You can create a Vocabulary for Game an one for Movie, adding all your subcategories as taxonomy terms. 您可以为游戏创建一个词汇,为电影创建一个词汇,将所有子类别添加为分类术语。 There is no need for JavaScript. 不需要JavaScript。 If you supply more specifications i will be able to help you more. 如果您提供更多规格,我将能够为您提供更多帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM