Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Drupal 5 Views Recipes

You're reading from   Drupal 5 Views Recipes 94 recipes to develop custom content displays for your Drupal web site

Arrow left icon
Product type Paperback
Published in May 2009
Publisher Packt
ISBN-13 9781847196965
Length 412 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Toc

Table of Contents (22) Chapters Close

Drupal 5 Views Recipes
Credits
About the Author
Acknowledgement
About the Reviewer
Preface
1. Introduction to Views FREE CHAPTER 2. Working with Default Views 3. CCK and Views 4. Dates and Calendars 5. Views and Tools for Administrators 6. Views Galore 7. Theming and Layout 8. Navigating the Online Drupal Community Default Views in Drupal 5 Modules
Formatters
Style Plugins
Views Hooks for Coders
Modules Included in Recipe Ingredients
Additional Resources and Modules Mentioned in Recipes
Selected Noteworthy Patches to Views
Index

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.

  1. Enable the Views Theme Wizard module at admin/build/modules.

  2. 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!

  3. Visit the newly cloned view, and observe the starting point, before applying the wizard.

  4. Visit admin/build/views, and select Theme Wizard.

  5. Select a view, and the Simple List Theme type. Click Select Theme Type.

  6. 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) to template.php

    • Create a...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image