O'Reilly logo

Building Websites with ExpressionEngine 2 by Leonard Murphy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix B. Solutions to Exercises

Most of the exercises throughout this book have more than one solution. The following are the example solutions to some of the exercises in this book. Where a solution has not been provided, the instructions in the chapter can be adapted to complete the exercise.

Chapter 3, Exercise 1

To limit the entries that are displayed to 2, you need to edit the channel tag to read as follows:

{exp:channel:entries channel="news" limit="2"}

Chapter 3, Exercise 2

To post a new entry to a channel, log into the control panel at http://localhost/admin.php (or http://localhost/system/index.php), and select Content from the menu at the top of the screen. Highlight Publish and then select the channel you wish to post to (in this case, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required