0

What's the template that controls the /faq-page (from the FAQ Module in Drupal 7)? I've read the explanation at the top of each tpl file inside the module, but can´t understand what file should I override.

When I enter the /faq-page url, I have the categories. When I click each category, they open in a new page. So I've tried the faq-category-new-page.tpl.php

But it won't work. I've copied the tpl into my theme, opened it and added some css classes. They won't work (even when I've flushed cache).

What template should I choose? Thanks! Rosamunda

1 Answer 1

1

The most simple solution would be to copy all of the 9 templates from the module directory to your theme, and then add a simple output and see where and how they are used. You can later delete the ones you don't need to modify.

The templates used seems to be based on the configuration settings though, so keep that in mind.

4
  • Yeah, I suppose I´lll just have to do that. Thanks!
    – Rosamunda
    Feb 11, 2013 at 11:54
  • Well, after grabbing the whole lot of default tpls, and adding at the bottom of each a print statement (and uploading to the server, and clearing cache), I can say that no, not any of them does affect the faq-page, nor any other page... (weird, but maybe I´m missing something here).
    – Rosamunda
    Feb 11, 2013 at 12:03
  • I´ve solved it customizing the theme from the css layer... I would rather change the tpl, but it seems there´s no other way?
    – Rosamunda
    Feb 11, 2013 at 13:53
  • 1
    If it doesn't work copying the templates to your theme and clearing the cache it's either something off with your Drupal install and/or your theme, or a bug in the module. First step in troubleshooting could be to make sure the caches are cleared by testing with other templates or checking the database tables.
    – dxc
    Feb 11, 2013 at 20:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.