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

Displaying categories with your entries

To encourage visitors to browse by category, it makes sense to display the categories that each entry belongs to underneath the questions on the faqs/index page. For this, you will use the channel {categories} tag, which allows you to list the categories, along with the {comment_total} tag to show how many comments each entry has and the {comment_url_title_auto_path} tag to link to your single-entry page for comments.

Note

Note that the {comment_url_title_auto_path} tag auto-generates the URL to your category template, as defined in Admin | Channel Administration | Channels, under Edit Preferences for the FAQs channel, then under Path Settings. The option Comment Page URL should be set to http://localhost/faqs/browse. ...

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