drupal views list ol or ordered list
How can we change the ul to ol in drupal view list, here I am referring to drupal 5. It might work in drupal 6 but I have not tested.
Took me hours to figure this one out, but as always the solution was simple
First create a view with type list then go to Theme wizard (if it is not present activate it from module [admin/build/modules] comes with the views module package.
Theme Wizard
- Select View : <select your view name>
- Select theme type: simple list
The wizard will create code for template.php file and view-list-<view name>.tpl.php file.php
Now pick the following line from the template.php file:
return theme(’item_list’, $items);
and replace it with
return theme(’item_list’, $items, NULL, ‘ol’);
Now wasn’t that simple but finding the solution is like finding needle from a haystack .. but finally Aal is well !!!