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

Time for action – using attributes to set background picture


Carry out the following steps:

  1. Go to the dashboard and click on Pages and Themes and then Attributes.

  2. At the bottom, select Image/File and click on Go.

  3. In the next screen, enter background for Handle and Background Picture in Name. The handle is what you'll need to access your attribute from code.

  4. Click on Add Attribute.

  5. Go to Page Types.

  6. Click on Edit next to the first page type.

  7. In the middle, check the checkbox next to Background Picture. This makes sure the attribute is displayed by default for each page of this type. You can add attributes to a page, even if this checkbox isn't checked, but it saves one click.

  8. Click on Update Page Type.

  9. Do the same for all page types where you'd like to use this attribute.

  10. Go to the home page and enable the edit mode.

  11. Click on Properties and select the last tab Custom Attributes. This is where you can find all the attributes on a page.

  12. Use the file selector next to our new attribute to select a new background...