Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Liferay Beginner's Guide

You're reading from   Liferay Beginner's Guide Quick and easy techniques to build, deploy, and maintain your own Liferay portal with this book and ebook

Arrow left icon
Product type Paperback
Published in Dec 2011
Publisher
ISBN-13 9781849517003
Length 396 pages
Edition Edition
Languages
Arrow right icon
Toc

Table of Contents (19) Chapters Close

Liferay
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
1. Planning Your Portal FREE CHAPTER 2. Installing a Liferay Portal Instance 3. Understanding Portal Basics and Theming 4. Tips and Tricks-Advanced Configuration 5. Building your First Liferay Site 6. Managing Pages, Users, and Permissions 7. Creating and Publishing Content 8. Exploring Communities 9. Setting up an Online Shop 10. Liferay Server Administration PayPal Test Account Configuration
Pop Quiz Answers 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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image