RE: Render WCM content on liferay portal page

sree p, modified 5 Years ago. Junior Member Posts: 91 Join Date: 10/3/19 Recent Posts
Hello, I have created 10 content items and showing as a slider in Page1 with their titles as links, I need to render those contents details when ever users click content title link from slider, can you please let me know how to get it done ?
thumbnail
Christoph Rabel, modified 5 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts
I am sorry, but I am not sure what you want to do.
If you need a slider/slideshow, you should look at some javascript slider libraries, there is a ton of them. 
https://www.w3schools.com/howto/howto_js_slideshow.asp
But maybe you want a lightbox?
https://lokeshdhakar.com/projects/lightbox2/
In any case, you should look for a javascript library that does what you want and then integrate it.
sree p, modified 5 Years ago. Junior Member Posts: 91 Join Date: 10/3/19 Recent Posts
Chrish, you did not understand my question, let me clear, I published few content items and showing as them slider with image and Title as link on home page,  so how to render content body/message when user click that content title link ?
thumbnail
Mohammed Yasin, modified 5 Years ago. Liferay Master Posts: 593 Join Date: 8/8/14 Recent Posts
Hi ,May be you can use modal for this where you can have div with title and link when link is clicked show the modalhttps://www.w3schools.com/howto/howto_css_modals.asp

Another way is also to separate page with web content display where the template need to fetch the id  of web content from parameter and show full view in template , for this you may need to disable cache for this template .
sree p, modified 5 Years ago. Junior Member Posts: 91 Join Date: 10/3/19 Recent Posts
it's not about modal, need to run that content body with in liferay page when user click content link on home page
thumbnail
Mohammed Yasin, modified 5 Years ago. Liferay Master Posts: 593 Join Date: 8/8/14 Recent Posts
Mohammed Yasin:

Another way is also to separate page with web content display where the template need to fetch the id  of web content from parameter and show full view in template , for this you may need to disable cache for this template .
You tried this , displaying WCM on page
sree p, modified 5 Years ago. Junior Member Posts: 91 Join Date: 10/3/19 Recent Posts
Hi, please let me know any one has any idea on this one