Ok I am not new to Drupal but I am new to taxonomy. I watched a few videos on taxonomy but not really finding a solution to what I am trying to do. The overall functionality is I want a editor to go into the content type select a check box called "Cross-sell" which then lists all all the other nodes with that tag/taxonomy. I tried to do this setting up a vocabulary list and then with a taxonomy menu in the sidebar but every page was getting the whole list applied to the page when I only wanted that specific tag/taxonomy group to show up.

So if I have a node called Solutions and I check mark "Cross-sell" I want all the page nodes marked with the tag/taxonomy of "Cross-sell" to appear as a linked list to each node. When I tried to do this it was linking to the path of the taxonomy not the page node.

Can anyone guide me on how to accomplish this? I think it is fairly simple I am just not understanding the drupal functionality.

Comments

nevets’s picture

It sounds like you want to use an entity reference field instead of taxonomy.

cabplan’s picture

So I have tried to use Entity Reference but it just does not seem to be working the way I need it to. I thought with Entity Reference I could create a content type called "Sidebar" then I create Sidebar nodes, then using Entity Reference I can have the content type appear as a list to choose from. The issue I am running into is that Entity Reference does not group the content types into a hierarchy, it is just a list of nodes, I want to be able to create a hierarchy (like how you can with a menu). I basically want to create categories for my content type (Website Page), then assign certain pages to certain categories, then display that specific category link node list as a right sidebar by using a checkbox on that "Website Page" content type.

So lets say I have a Website Page content type node called Solutions. Solution has 3 sub-pages all the same content type (Platform, Media, and Tech). I want to assign those three sub-pages to a category (taxonomy/tags) of "Solutions". I then want to display that sub-page group as a right sidebar link node list on that page by checking a checkbox field on the "Website Page" content type, so it is easy to add a sidebar of a category group. If there is not category field selected then the page would stay full width.

I hope that explain what I am trying to accomplish.

nevets’s picture

I would add an entity reference field called "parent" and in sub-pages I would set this to the parent. When viewing the parent you can easily add a view that uses a contextual argument on node/content id and a relationship so it lists all pages that have parent set to the current node.

cabplan’s picture

Is there a video tutorial on how to accomplish this? I believe I can follow those instructions but it all seems very complicated for a simple function.

If I create Entity Reference field called "parent" how do I distinguish which parent I want the sub-page to fall under? I mean with the menu links, it displays all the items in the menu and lets you choose, but how would I get a similar tree output to select the parent ("Solutions") for the sub-pages.

cabplan’s picture

So I kind of get this working by using Entity Reference and displaying all my "Website Page" content type nodes, which I can then choose which nodes items I want to show up on the right as a link. The issue I am having is that I would like to group them into a categorized list, so there is a hierarchy structure when choosing a group of linked list. So when if I want a group of "Solutions" linked list (Platform, Media, Tech) node to show up, I just have to check the "Solutions group" checkbox and it would display all. Instead of going through the long list of nodes of the entity reference.

It does seem that with Taxonomy and Entity Reference I can get my "Webpage Page" content type with "Sort Field" on Taxonomy I sort of got it working except that I wish I could group the pages so that as I choose Taxonomy of "Solutions", in the Entity Reference area it has a Label called "Solution".

I am trying to use the Views to change how the entity reference field is displaying but having trouble trying to group the taxonomy label nodes into its taxonomy label

cabplan’s picture

Ok the issue I am having now is that my view is displaying how I want it to with the grouping of taxonomy in the Entity Reference List format but in the content type it is not showing the group labels. Does anyone know why the content type entity field is not displaying how the View is displaying if I am using the View mode in that field?