I'm using an accordion list. In my file views-views-accordion.tpl.php want to print a div before the title of each article. I'm using the latest version of drupal and views. Any idea?

1 Answer 1


You have many ways of achieving this:

  1. You can either preprocess it inside template.php file. The title has a #prefix and a #suffix theme key when preprocessing it with hook_preprocess_node().

  2. Install delta blocks and turn convert the page into block and place the block accordingly.

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.