O'Reilly logo

Liferay Portal 5.2 Systems Development by Jonas Yuan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building dynamic articles with polls

As mentioned earlier in the use case related content, it was nice that we could not only display related content for a given article, but also add poll for this article. Thus, the user can view an article, select related content, rate the article, provide his or her comments on the article, and most importantly, contribute his or her opinions on the article through polls.

Let's consider how to add a poll to an article via a template. As shown in the following screenshot, when building a structure for the use case Template Node Poll, we can use the customized template node Link to Poll. That is, we can use the default template nodes: Text, Text Box, Text Area (HTML), Image, Image Gallery, Document Library, Boolean ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required