Structures and templates in Liferay6.2

1.Login as test@liferay.com --> in docbar go to Admin--->content.



2. Click on Manage-->Structures.

3.Click on Add

4. Give the name of the structure.



5. Select the fields required for the structure and drop them into empty space.



6. I have chosen Html and image fields, Now click on settings of the dropped html field, change the label name if you want(I have not changed any thing).


7. Similarly click on the image field setting now select repeatable to yes. and then save structure.

8. Now go to Manage--> Templates--> Click on Add--->give template name and then select the structure for the template you created and choose velocity template for language.


9. The fields you have created in structure will be displayed in template.Just click on the fields it automatically creates the velocity code and then save.

10. Drop the web-content display portlet in a page and the click -->add -->choose structure. then add the text and images. that's it.



Search This Blog

All the rights are reserved to this blog is belongs to me only.. Powered by Blogger.