Copied to clipboard

Flag this post as spam?

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


  • Dan Sørensen 102 posts 327 karma points
    Nov 23, 2015 @ 16:37
    Dan Sørensen
    0

    News category structure

    Hi Umbraco developers

    Im creating a news section to my site but cant figure out the right way to structure it.

    enter image description here

    This is the structure I have made so far.

    The requirements:

    1. the news should be visible in more than one category.
    2. the news should be easy to find agian.

    Number 1. is made with a multinodetreepicker so the user can choose the categories where the news should appear.

    Number 2. is why I didn't go with all the news in the same location.

    Now this give me a problem when I want the news on frontend, because the breadcrum and currentpage will always take the posistion where the node is located.

    So as in the image above if I make a "news 1" in "Category 1" and I choose "Category 2" on the news then "news 1" will show in "Category 2" on frontend but the url and breadcrum will now be wrong when I press the news beacuse the real location is always in Category 1.

    So the real url will be:

    siteurl.com/news-archive/Category-1/news-1

    but I want this url when I choose the node

    siteurl.com/news-archive/Category-2/news-1

    Hope it all make sense

    so my question is how I achieve this.

  • Kerri Mallinson 113 posts 497 karma points
    Nov 25, 2015 @ 18:38
    Kerri Mallinson
    0

    Does the url need to have the category name in?

    If not, i would either:

    create the news articles directly under the archive folder then use a Dropdown Multiple property on the news article to assign categories to the article.

    or:

    if you need to have category pages you would include the MNTP on the category page but url of the actual news article would not contain a category name

Please Sign in or register to post replies

Write your reply to:

Draft