Chosing name for Theme file Views

Events happening in the community are now at Drupal community events on www.drupal.org.
jbatista's picture

Hello people and thank for the help in advance.
I'm creating this thread because i have a problem theming views.

I would like to use the same template file for views with diferente names.

For example:

View_A  -> template_file_view_ab.tlp.php
View_B  -> template_file_view_ab.tlp.php

View_C  -> template_file_view_cd.tlp.php
View_D  -> template_file_view_cd.tlp.php

Does anyone knows how to do it?

Thanks in advance.

Comments

You can't do it by

esmerel's picture

You can't do it by default.

You can:

a) Create a template for view A, and copy it to the template for view B. You'll have to remember to do that when you make updates.
b) Create a template for view A, and symlink the template for view B to it.

Thanks Esmerel Can you

jbatista's picture

Thanks Esmerel

Can you please tell me how to do the option b) ?

Thanks again.

Views Developers

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: