Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Andrew 12 posts 92 karma points
    Apr 08, 2021 @ 16:16
    Andrew
    0

    How to define a category structure

    Hi,

    I'm wondering how I should approach defining a category structure that can be used throughout the site.

    Editors would need to be able to add categories and modify the display values per language.

    Editors would then select a category while editing other content.

    I'm probably missing something oblivious, could someone point me in the right direction?

    Edit: I'm trying to determine how to migrate from a different CMS that has globally defined categories

  • Amir Khan 1239 posts 2615 karma points
    Apr 08, 2021 @ 17:18
    Amir Khan
    1

    You'd want to create a document type "Categories" then another called "Category" and allow the Category document type under Categories. Then you can create a node with the Categories document type which is essentially a folder and create Categories underneath with the Category document type. Then, on the document type where you want to choose the categories, add a Multi-node treepicker or similar to choose the categories and select that categories folder as the start node. You can create multiple Multinode datatypes and poin them at various start nodes as well. Screenshot attached of the structure and picker, in this case we're using nuPickers instead of Multi-node, but same concept. You can name your document types whatever you'd like as well.

    enter image description here

    enter image description here

  • Andrew 12 posts 92 karma points
    Apr 08, 2021 @ 17:48
    Andrew
    0

    Thank you Amir, that works well.

    Is there an option in the document type I should select to avoid having a link appear?

    enter image description here

  • Amir Khan 1239 posts 2615 karma points
    Apr 08, 2021 @ 18:00
    Amir Khan
    0

    Unfortunately not. If you create a document type without a template it won't render content and shouldn't be indexed but you can put up some redirects to be safe like here: https://our.umbraco.com/forum/using-umbraco-and-getting-started/102002-why-does-a-node-with-no-template-assigned-get-a-url

  • Andrew 12 posts 92 karma points
    Apr 08, 2021 @ 18:01
    Andrew
    0

    Ok, Thanks again :)

Please Sign in or register to post replies

Write your reply to:

Draft