Announcement

Collapse
No announcement yet.

Need Category and subcategory in each thread

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Need Category and subcategory in each thread

    I want something like Stackexchange site tagging system but I need two level tags( parent-child).

    I've 1000 companies and each company has 5 products.

    There is going to be single Common forum.

    When we create a thread I want to select a company first in the tag then I want to select product name within the company in 2nd tag.


    For example:

    Thread1: Tag1: Samsung Sub-tag : mobile
    Thread2: Tag1: Sony Sub-tag: laptop

    So when I select Sony then in Sub-tags only Sony's products should come.

    What is the way to do it?

    VB already allows single level tagging.


    Something as explained in https://www.drupal.org/files/project...SHS_widget.png
    Last edited by rag_gupta; Wed 7th Feb '18, 10:58pm.

  • #2
    This is not currently possible with tags alone. You can use a combination of tags and thread prefixes. To have hierarchal tags, it would require custom coding or the feature to be added to vBulletin.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud customization and demonstration site.
    vBulletin 5 Documentation - Updated every Friday. Report issues here.
    vBulletin 5 API - Full / Mobile
    I am not currently available for vB Messenger Chats.

    Comment


    • #3
      No problem I've another design.


      I'll have a tag for every company+product combo.


      So for Samsung-Mobile I'll create a tag :samsung-mobile


      To have user select it, I'll create a popup asking them to select company and then show it's corresponding products and combine both to map to pre-established tag id : company-product.


      Is this idea feasible?


      Like that of Stackexchange sites?


      Using this technique I'll have limited forums at the same time created focused forums.


      Only that for each url of tag company+product POST new thread should already have this tag pre-populated.


      I hope it should be straight forward by inserting a javascript file in the relevant template( something like forum create)

      Comment


      • #4
        If you use Topic Prefixes -
        • You can make them required so one is always chosen.
        • The end user will choose one from a drop-down
        • Each prefix will automatically be linked in the topic lists. Clicking on it performs a search of all topic prefixes.
        • You can style them with CSS to make them colorful buttons like StackExchange if you wish.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud customization and demonstration site.
        vBulletin 5 Documentation - Updated every Friday. Report issues here.
        vBulletin 5 API - Full / Mobile
        I am not currently available for vB Messenger Chats.

        Comment


        • #5
          Here’s an example of how I used topic prefixes in this way, on my cloud demo site:
          https://www.adminammo.com/forum/gene...are-discussion
          MARK.B | vBULLETIN SUPPORT

          TalkNewsUK - My vBulletin 5.4.4 Demo
          AdminAmmo - My Cloud Demo

          Comment

          Related Topics

          Collapse

          Working...
          X