Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After two days of playing with views contextual filters and relationships, I don't know how to display a space's taxonomy content (or taxonomy links) without manual view creation for each one.
So assuming all users know how to create the taxonomy etc., how do we display it in a space?
Note: This is a duplicate of one or two other threads that don't get to a solution. So a quick step by step or a "Nope" would be ideal.
Thanks.
Comment | File | Size | Author |
---|---|---|---|
#8 | Vocabulary_terms_as_they_appear_in_a_Event.png | 17.7 KB | dpoletto |
#8 | Vocabulary_terms_as_they_appear_in_a_Document_page.png | 8.43 KB | dpoletto |
#8 | Vocabulary_terms_as_they_appear_in_a_Task.png | 6.94 KB | dpoletto |
Comments
Comment #1
mpotter CreditAttribution: mpotter commentedThe taxonomy terms for content are usually shown as links just below their body fields on their full node pages.
If you need to show custom taxonomy terms within some sort of View or table, then you need to customize and add those yourself. If you post more details on exactly which view you are using I can try to help more.
Comment #2
dpoletto CreditAttribution: dpoletto commentedResurrecting this thread because I'm testing the vocabulary terms visibility in OA 2.41 and noticed that, specifically on Discussion post's content type, once the new Taxonomy was created and associated with the relevant OA Space in order to be able to add vocabulary terms to content then these terms don't appear "below the content body" as expected (as a link), denoting a possible issue/problem in the view of them.
More, the taxonomy terms visibility behaviour, changes when content type changes (in OA Sections belonging to the same taxonomy enabled OA Space):
A thing to note is that content that can be associated with taxonomy terms, despite associated terms are visible or not on the content's body, then is filtered (so it appears as a list) when link cited above is selected (links appear in the content's body under two strings "OG Vocabulary" and associated vocabulary's name)...this means that taxonomy mechanism works but its visibility (in terms of seeing "terms tagging" on content) not or, at least, not on every OA content type.
Can this be confirmed?
Step to reproduce: Create a new Vocabulary and add few terms to it directly by OA Space Configure->config->taxonomy OR associate, in the same page, with an existing non empty Vocabulary now note that on Discussion Post, among "Attachment" and "Access" you will note the Vocabulary and you have the file into which to select terms.
Publish the post and note the absence of the term/terms added. As said the same doesn't happen with a Task (it seems to work) instead Calendar event doesn't show the vocabulary at all.
Am I doing something wrong?
Thanks, Davide.
Comment #3
mpotter CreditAttribution: mpotter commentedYou should probably wait till 2.42 is released later today and give it another try. There have been several changes to og_vocab recently and also some fixes to taxonomy in Atrium. So this might already be fixed.
Comment #4
dpoletto CreditAttribution: dpoletto commentedHi Mike! OK! I'll give it a try after updating a OA 2.41 site I used for tests, thanks again.
Comment #5
mpotter CreditAttribution: mpotter commentedShould be fixed now in the 2.42 release. Re-open if there is still an issue.
Comment #6
dpoletto CreditAttribution: dpoletto commentedHello Mike, upgraded to OA 2.42 and did few tests.
What is changed since my comment #2:
Tested on existing (2.41) sections and also after creating new (after 2.42 upgrade) sections. So if an Event now shows vocabulary terms as expected, a Discussion Post still doesn't.
Please also notice my note about different ways vocabulary terms are displayed (personally I prefer - it's more compact and modern - the way they're displayed in a Task/Document content type than the way they appear on an Event content type).
If you need a screenshot let me know.
Comment #7
mpotter CreditAttribution: mpotter commentedThe Task/Document format is how they *should* be displayed on all other content types. Not sure what would be different in the theming with Events but I'll look into it as well as why they don't show on Discussions.
Comment #8
dpoletto CreditAttribution: dpoletto commentedHere I am with few screenshots (bulleted list representation on Event versus the default way). Thanks Mike. Davide.
Edit: Also note that only in Task, vocabulary terms are preceeded by the vocabulary name which they belong to.
Comment #9
mpotter CreditAttribution: mpotter commentedI've added several commits across several modules to improve the consistency of terms on content types.
1) Events were using a View for "Event detail" and adding the taxonomy terms there. I removed the terms, links, attachments from this view and put them into panelizer panes where they belong. I think this View is left over from some old code in Atrium and probably shouldn't be used for this. But left the rest of the view for now.
2) Tasks is using a Full node render in panels, which renders the og_vocab field as part of the content type display options. There probably should be a different want to handle the task rendering, with the "Status" box handled as a themed item rather than relying on the field groups. The problem is that it will only render the OG Vocab field, and not any other global taxonomy added to the node. So some day this should be refactored to use the same "Node terms" panelizer pane as the other content types. For now I have hidden the vocab name so this list of terms will match other content types.
3) Documents were actually doing it right!
4) Discussions were missing both the Node Terms and Node Links panes in the panelizer layout, so added those.
5) Finally, moved the css to control how these links look (labels with gray background) into the oa_radix theme instead of in oa_wiki.css
So, keeping this issue as Fixed. In v2.43 if there is still a problem, open a new issue for it.
Comment #10
dpoletto CreditAttribution: dpoletto commentedThanks Mike, really! Hope to be able to test ASAP. Davide.