Book Image

Liferay Beginner's Guide

Book Image

Liferay Beginner's Guide

Overview of this book

Table of Contents (19 chapters)
Liferay
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
PayPal Test Account Configuration
Index

Time for action – creating template-based content


Carry out the following steps to create a piece of content that uses the HOSALE-STRUCTURE and the HOSALE-TEMPLATE:

  1. Go to Control Panel | Web Content.

  2. Click on Add Web Content.

  3. In the Name field, enter HO-SALE-ARTICLE.

  4. Under Template label on the right-hand side, click on Select.

  5. When a window pops up, click on OK.

  6. Choose HOSALE-TEMPLATE – the page re-loads and its content changes:

  7. Click on Select for onSaleSign.

  8. When a window pops up, click on the folder where you have uploaded the on-sale sign image.

  9. Click on the Choose button for the on-sale sign image file – a URL to the image file is set as the value of the onSaleSign field.

  10. Select or enter values for other variables as defined in the HOSALE-STRUCTURE structure.

  11. Click on Publish.

The HO-SALE-ARTICLE content is created.

What just happened?

As you can see, the creation of this piece of content is different from that of the general content – you are restricted to entering values in just seven input...