Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Render WCM content on liferay portal page
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 ?
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.
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.
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 ?
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 .
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 .
it's not about modal, need to run that content body with in liferay page when user click content link on home page
Mohammed Yasin:
You tried this , displaying WCM on page
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 .
Hi, please let me know any one has any idea on this one
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™