0

I'm building a module that return you an HTML styled node via ajax but I have a question. I want to add a node suggestion only for this module. How?

So drupal have to check: Exist [in active theme] ajaxnode.tpl? And ajaxnode--nodetype.tpl? If they don't exist choice the normal drupal suggestion template and render the node.

How can i do this correctly?

1

1 Answer 1

1

I'd go and get the Theme developer module. Simply get the element you want to theme and click on it - then you'll get a list of any template files and/or theme functions that were called in the processing of the element you clicked.

Firebug for Drupal themeing. See the screenshot and screencast. Note that this module injects markers into the DOM to do its magic. This may cause some themes to behave erratically and less capable browsers may make it worse (especially IE)/. Enable it when needed, and disable it afterwards.

1
  • I need to have the template files's list in the module not in interface..
    – Shyghar
    Commented Jun 27, 2013 at 13:21

Your Answer

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

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