Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Thommy M.
popup an new instance of portlet
August 7, 2008 8:25 AM
Answer

Thommy M.

Rank: Junior Member

Posts: 34

Join Date: July 30, 2008

Recent Posts

hello,

is it possible to open an new instance of a portlet in a popup window?

greets,
thommy
Anonymous
RE: popup an new instance of portlet
August 8, 2008 1:22 AM
Answer

Anonymous

I think it is possible on click of any anchor tag you can mention target="_blank" it will open popup window

i,e <a href="" target="_blank">
Thommy M.
RE: popup an new instance of portlet
August 13, 2008 12:57 AM
Answer

Thommy M.

Rank: Junior Member

Posts: 34

Join Date: July 30, 2008

Recent Posts

No I mean: when you click on a link a new popup windows opens and a new instance of a portlet will be initialize there.
Thommy M.
RE: popup an new instance of portlet
August 15, 2008 6:58 AM
Answer

Thommy M.

Rank: Junior Member

Posts: 34

Join Date: July 30, 2008

Recent Posts

has nobody a tip?
Wilson Man
RE: popup an new instance of portlet
August 15, 2008 5:10 PM
Answer

Wilson Man

LIFERAY STAFF

Rank: Liferay Master

Posts: 577

Join Date: June 21, 2006

Recent Posts

Liferay has an additional windowState called POPUP. I haven't actually used it or seen it used, but you may want to look into that and see if that works for you.
Ray Augé
Re: [Liferay Forums][3. Development] RE: popup an new instance of portlet
August 16, 2008 12:54 PM
Answer

Ray Augé

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1171

Join Date: February 7, 2005

Recent Posts

Hey guys,

See Journal Template editor dialog.

e.g.
 1...
 2<input id="<portlet:namespace />editorButton" type="button"
 3value="<liferay-ui:message key="launch-editor" />" />
 4...
 5<script type="text/javascript">
 6    Liferay.Util.inlineEditor(
 7        {
 8            url: '<portlet:renderURL windowState="<%=
 9LiferayWindowState.EXCLUSIVE.toString() %>"><portlet:param
10name="struts_action"
11value="/journal/edit_template_xsl" /></portlet:renderURL>&<portlet:namespace />langType=' + document.<portlet:namespace />fm.<portlet:namespace />langType.value,
12            button: '#<portlet:namespace />editorButton',
13            textarea: '<portlet:namespace />xslContent'
14        }
15    );
16</script>


Basically, the above attaches an event handler to the input
identified as id="<portlet:namespace />editorButton" using the
Liferay.Util.inlineEditor js utility.

This should be a good start (note the portlet url is using the
LiferayWindowState.EXCLUSIVE.toString() window state to achieve
the "unwrapped" popup content.

HTH!
Ryan Terwedo
RE: Re: [Liferay Forums][3. Development] RE: popup an new instance of portl
December 18, 2008 5:42 AM
Answer

Ryan Terwedo

Rank: Junior Member

Posts: 93

Join Date: October 30, 2008

Recent Posts

Ray Augé:
Hey guys,

See Journal Template editor dialog.

e.g.
 1...
 2<input id="<portlet:namespace />editorButton" type="button"
 3value="<liferay-ui:message key="launch-editor" />" />
 4...
 5<script type="text/javascript">
 6    Liferay.Util.inlineEditor(
 7        {
 8            url: '<portlet:renderURL windowState="<%=
 9LiferayWindowState.EXCLUSIVE.toString() %>"><portlet:param
10name="struts_action"
11value="/journal/edit_template_xsl" /></portlet:renderURL>&<portlet:namespace />langType=' + document.<portlet:namespace />fm.<portlet:namespace />langType.value,
12            button: '#<portlet:namespace />editorButton',
13            textarea: '<portlet:namespace />xslContent'
14        }
15    );
16</script>


Basically, the above attaches an event handler to the input
identified as id="<portlet:namespace />editorButton" using the
Liferay.Util.inlineEditor js utility.

This should be a good start (note the portlet url is using the
LiferayWindowState.EXCLUSIVE.toString() window state to achieve
the "unwrapped" popup content.

HTH!


Are you saying this can be input directly into a journal article? I am trying to have an iframe portlet popup, but maintain all the login features of a portlet.

...I must be doing something wrong and my java coding days are def long gone... =)

Thanks
Ryan Terwedo
RE: Re: [Liferay Forums][3. Development] RE: popup an new instance of portl
December 18, 2008 4:26 PM
Answer

Ryan Terwedo

Rank: Junior Member

Posts: 93

Join Date: October 30, 2008

Recent Posts

For those of you like me who missed, journal "TEMPLATE" in Rays post, see here

http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Journal+Template+%28Velocity%29