Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Liferay Beginner's Guide
  • Table Of Contents Toc
  • Feedback & Rating feedback
Liferay Beginner's Guide

Liferay Beginner's Guide

3.8 (5)
close
close
Liferay Beginner's Guide

Liferay Beginner's Guide

3.8 (5)

Overview of this book

Table of Contents (19 chapters)
close
close
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...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY