I have my FAQs configured to use categories. /faq-page lists the categories and when a user clicks on their desired category it lists the questions at the top. Clicking on the question jumps the user down the page to where the question is repeated but gives the answer. Below the answer is the taxonomy term and a Return to Top link.
There are two problems:
1. Return to Top uses the anchor id of "top". This is extremely generic and is currently being used by my theme, Marinelli. This is causing a huge gap to appear where the anchor is positioned because the CSS for div id top is applied. I would suggest changing this in the module so that it doesn't conflict. I managed to fix the problem by putting the tpl.php files faq-category-questions-top and faq-category-questions-top-answers in my theme and changing the name of the anchor in there. However, it wasn't possible to fix the Return to Top link in the tpl.php files unless I deleted the line that prints node links and replaced it with my own Return to Top link HTML.
2. I can't figure out why the taxonomy term is printing on the page. Since the page is listing all of the questions for this category, it's redundant to list the category for each question. How can I stop it from printing on this page? I would like it to print on the actual faq node page though.
Comments
Comment #1
stella commentedOk I've renamed the "top" anchor to "faq-top" to avoid conflicts, though could equally argue that the Marinelli theme also needs to be changed.
As for the 2nd issue, I imagine that's because you've enabled the "use answer teaser" option and so the taxonomy term is being printed as part of the teaser view mode. You can probably remove this via the "display fields" on the content type or in the theme layer.
Comment #2
jlea9378 commentedThanks, that fixed it.
I didn't have the use answer teaser checked. Checking it allowed me to configure it using the tpl.php file for teaser but that introduced other issues (getting my users to know where to put teaser breaks), so I don't think it's going to work in our situation. I'll stick to the full page view I think.
Comment #4
Rustan commentedI also had issue 2, FAQ: + category showing up under each answer. Quite confusing as I believed it was handled with the faq settings page. Hiding display for that on the content type did the trick, thanks stella!