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
How to see my portlet directly with out creating a page and adding portlet.
I have a link in my main page.
When i click on the link it should show the portlet directly.
i created a portlet and i want to see that directly when i click the link.
How can i give the direct portlet link in href.how to get the complete path of my portlet.
When i click on the link it should show the portlet directly.
i created a portlet and i want to see that directly when i click the link.
How can i give the direct portlet link in href.how to get the complete path of my portlet.
You always have to create a page and place the portlet there. A portlet has no link by itself.
Once the portlet is placed on a page, you can link directly to the portlet on the page, e.g. if you want to just show the portlet, without the page header, navigation and the rest. When you click on the portlet configuration, there is a sharing tab. In that tab you can find a little snippet with a link. You can use that link to directly link to your portlet.
Once the portlet is placed on a page, you can link directly to the portlet on the page, e.g. if you want to just show the portlet, without the page header, navigation and the rest. When you click on the portlet configuration, there is a sharing tab. In that tab you can find a little snippet with a link. You can use that link to directly link to your portlet.
harika suram:
How can i give the direct portlet link in href.how to get the complete path of my portlet.
In addition to Christoph's explanation: Consider what a portlet is generating: It's starting with a <div>. There's no <html>, <head>, <body> within your portlet (or it'll be a broken one), so you'll always need something to host your portlet.
This something can be a modal dialog (typically opening a decorated iframe) - I can't remember the window-state... EXCLUSIVE? POPUP? something like that. It also can be the share-link that Christoph mentioned.
Based on this principle, I have the impression that you're thinking along the wrong way to solve whatever underlying problem you have. You have control over your portlet, somebody else has control over the page. Yes, you can solve it with exclusive access, but not without the required HTML decoration around your portlet.
Thanks.I just made the page hidden so that it seems like i can directly see my content without seeing any page.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™