I am struggling with a seemingly common task. I have a View block with a teaser list at 'example.com/home' which displays articles from various sections of my site. On this page certain other blocks are present. When clicking the teaser I am taken to 'example.com/node/X'. When I'd prefer to go to 'example.com/{section name}/node/X' or something like that. This is so I could set the blocks active to the URL 'example.com/{section name}/*'
What I want is the illusion that clicking on the teaser in the sidebar block loads the node in the content area of the section it belongs to. I thought I could accomplish this with "URL path settings" of the node, but even if I made my block show up on '{section name}/*', I'd have to set each node's URL to something like '{section name}/this-is-an-article/'. I'd like to avoid this because the people actually writing articles have been trained to select a certain taxonomy term to determine which section it will appear in. I think it would be very error prone to have them include the {section name} in each URL.
Is there another way?
Thanks in advance,
Tyler
Comments
...
Use the Pathauto module to write your URL's for you. You can configure the alias for nodes to include the taxonomy term precisely how you want it.
Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.