Message Boards

can we connect portlet button to portal site?

Tiago Machado, modified 5 Years ago.

can we connect portlet button to portal site?

Junior Member Posts: 59 Join Date: 2/21/19 Recent Posts
Hello and sorry, the subject must be a little confusing to understand...

I have a portlet with 2 buttons in the view.jsp, Add movies and list movies, nothing big since im just training and learning, and now I want to create another button in the view called "Forum", i have searched a little, and by what I have seen in the liferay tutorial they show how to make that in the portal instead of coding, what I wanted to do is, connect that button onClick to call the forum site I will create in the portal. is that even possible? 
is it possible to like do half of the work we need coding, and the other half to facilitate the development in the portal? how can I do that?

​​​​​​​Thank you very much for your time!
thumbnail
David H Nebinger, modified 5 Years ago.

RE: can we connect portlet button to portal site?

Liferay Legend Posts: 14919 Join Date: 9/2/06 Recent Posts
Normally we just do an <a href="<insert page url here>" /> sort of thing.

Trying to use onClick implies that you want to do this from javascript; that of course is doable, but it's really not much more than changing the window.location.
Tiago Machado, modified 5 Years ago.

RE: can we connect portlet button to portal site?

Junior Member Posts: 59 Join Date: 2/21/19 Recent Posts
Thanks for the answer David!

silly me, that was pretty easy, I just created a button "Forum" with the href passing the "friendly URL" created when creating the site in the portal.

With message boad I was able to create the forum, but I noticed that I cant create polls there or is there another way? can it be "fully" configurable from the portal so I can add polls? when uploading an image it wont appear too emoticon (tried downloading a jpg and png and upload it in some created thread).

or is it better to create a forum in the backend using eclipse? if so how could I make that? is there some info I can read in the internet? couln't find any.

thank you very much
thumbnail
David H Nebinger, modified 5 Years ago.

RE: can we connect portlet button to portal site?

Liferay Legend Posts: 14919 Join Date: 9/2/06 Recent Posts
polls can be placed on the same page as a forum, but they are not mixed content; a forum post cannot contain a poll, for example.
Tiago Machado, modified 5 Years ago.

RE: can we connect portlet button to portal site?

Junior Member Posts: 59 Join Date: 2/21/19 Recent Posts
okay David! thank you very much for the answer!