RE: How to see my portlet directly with out creating a page and adding port

thumbnail
harika suram, modified 5 Years ago. New Member Posts: 16 Join Date: 11/16/08 Recent Posts
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.
thumbnail
Christoph Rabel, modified 5 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts
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.
thumbnail
Olaf Kock, modified 5 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts
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.
thumbnail
harika suram, modified 5 Years ago. New Member Posts: 16 Join Date: 11/16/08 Recent Posts
Thanks.I just made the page hidden so that it seems like i can directly see my content without seeing any page.