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
Embeding one liferay page in another using iframe
Hi,
Some of web pages in our portal could be accessed directly or are embedded using iframe in another pages.
For admin dockbar element should be shown only if page is not embedded. How to do that? Is it possible somehow to check that state in theme velocity template and skip docbar loading?
Using Liferay 6.2.
Some of web pages in our portal could be accessed directly or are embedded using iframe in another pages.
For admin dockbar element should be shown only if page is not embedded. How to do that? Is it possible somehow to check that state in theme velocity template and skip docbar loading?
Using Liferay 6.2.
There's nothing OOTB for this. However, if you're only dealing with a single portlet, you can set the window state to LiferayWindowState.POP_UP. This will render only the portlet (i.e., everything else like the dockbar, theme, portlet border will be gone).