Recipe 79: Views Theme Wizard
Note
Ingredients
Views theme wizard, comes with Views module
Completed Recipe 34, or view of your choice
The Views Theme Wizard has no magic wand, but it does offer a lot of power to help you to customize your views.
Enable the Views Theme Wizard module at
admin/build/modules
.Clone a view such as workshops, from Recipe 34. Rename it to workshops_list, and change the URL to workshops-list. Change the View type to List View. Why change to a list? Because the Views Theme Wizard only works on List View types!
Visit the newly cloned view, and observe the starting point, before applying the wizard.
Visit
admin/build/views
, and select Theme Wizard.Select a view, and the Simple List Theme type. Click Select Theme Type.
Three boxes of code appear on the resulting page that you can incorporate into your theme. Follow the instructions provided by each box.
Copy the full
phptemplate_views_view_list_workshops_list()
theme function (including the comments) totemplate.php
Create a...