Book Image

concrete5 Beginner's Guide

Book Image

concrete5 Beginner's Guide

Overview of this book

Table of Contents (19 chapters)
concrete5
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Working with page attributes


concrete5 ships with a few default attributes on pages, users, and files. You can easily add new attributes to these objects to attach different kind of metadata to them. You can use attributes to create dynamic elements in your theme without creating your own block.

A few things you can do with the default attributes:

  • Exclude a page from the navigation

  • Specify metadata for search engines

  • Exclude a page from the search index

These are just a few things you can do by default, without adding a new attribute. However, what can we do if we create our own attributes?

Imagine we'd like to have a different background picture on each page. We could create a block for this, but we can also use an attribute and a little modification to our theme.