Show taxonomy terms
samwarren - February 25, 2009 - 04:52
| Project: | Advanced Forum |
| Version: | 6.x-2.0-alpha1 |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
The terms cannot be shown in any post after enabling advanced forum. I just disabled the module and the original terms come up right away. It is for sure due to the module.
I searched and could not find others with this issue. Did I do something wrong?

#1
AF doesn't currently show taxonomy terms in forum nodes. This is something I planned to address in 2.x, so adding it to the list. In the mean time, you can always add <?print $terms ?> to your own template.
Michelle
#2
#3
If I could just second this one. Terms are pretty central to drupal and the entire user experience.
In the mean time, where can we add this <?print $terms ?> ?
Thank you for a great module!
#4
Copy advf-forum-post.tpl.php to your theme and add it there.
Michelle
#5
Linking to #484174: Tagging
Michelle
#6
Added to 2.x
Michelle
#7
Automatically closed -- issue fixed for 2 weeks with no activity.
#8
Some info for those still interested (though it looks like the 2.0 release that includes terms is very close).
The advf-forum-post.tpl.php
file is in: advanced_forum/styles/naked/
I made this change by copying that file into the top level of my theme directory ([path]/sites/all/themes/[themedirectory]) and making this portion of the code:
<div class="forum-post-footer clear-block">
<div class="forum-jump-links">
<a href="#top" title="Jump to top of page"><?php print t("Top"); ?></a>
</div>
Read like this:
<div class="forum-post-footer clear-block"><div class="forum-jump-links">
<a href="#top" title="Jump to top of page"><?php print t("Top"); ?></a>
</div>
<? /** the next line was added to print taxonomy terms on forum topics--it is styled in the accompanying Advanced Forum CSS file**/?>
<div class="advf-term-container"><?php print $terms ?></div>
I'm using the 'Blue Lagoon - stacked' Advanced forum theme, so I then copied the advanced_forum.css file from the [path]/sites/all/modules/advanced_forum/styles/blue_lagoon_stacked directory into my theme directory ([path]/sites/all/themes/[themedirectory]), and added these lines to the end of that file:
/* Taxonomy Terms *//* CSS accompanies $print statement added to advf-forum-post.tpl.php*/
.advf-term-container .vocab-term {
display: inline;
}
The CSS could be improved, but it allows the terms to display horizontally.
#9
Maybe important to note that if you move the advanced_forum.css file into [path]/sites/all/themes/[themedirectory], that CSS will always override what you choose as a theme for Advanced Forum -- so you can no longer change the Advanced Forum theme -- maybe better to change the CSS in the theme folder directly.
#10
Hi Michelle, I tried the 6.X-2.x-Alpha and dev releases of Advanced Forum (which did pull the tags), but lost all the content (text, images, and links) contained in my forum nodes. I also tried reverting to AF 6.x-1.1 and implementing the <?print $terms ?> string inside a file named advf-forum-post.tpl.php (placed in my theme's directory) and had the same results. I further tried moving the patch file and testing under the default "blue lagoon" theme, yet still encountered the same problem. If this works for you and others, there must be a conflict with one of the other modules I'm running (there are quite a few). Has anyone else encountered a module conflict involving tags and AF?
#11
It's been well over a month and no one else has said anything. I can't imagine anything with simply printing out the terms that would cause the problem you're having. If it's still a problem, please open a new support issue as this issue was about adding the term printing, which is committed.
Michelle