Book Image

Learning Joomla! 1.5 Extension Development

Book Image

Learning Joomla! 1.5 Extension Development

Overview of this book

Table of Contents (17 chapters)
Learning Joomla! 1.5 Extension Development
Credits
About the Author
About the Reviewer
Preface

Chapter 7. Expanding the Project

Our components and modules are doing a good job of managing the reviews and taking in comments. However, there are a lot of modifications that we could make in order to give our reviewers greater control over the display. Also, now that we have comments, we need a way of moderating them. We will make the following modifications and additions in this chapter:

  • Publishing and deleting records

  • Adding an Apply task

  • Paginating results in list screens

  • Requiring fields

  • Performing searches

  • Migrating toolbars to views

  • Managing comments

Publishing records

When we first built out the backend for managing the reviews, the Publish and Unpublish buttons were added. However, if you try to use these buttons right now, they have no effect. Logic must be added to the controller to handle the publish and unpublish tasks. Let's start with the publish task. Edit the /administrator/components/com_restaurants/restaurants.php file, and add the following function to the RestaurantsController...