Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Andrew Grimo
Wishing to add a Sign In area from within portal_normal.vm
June 18, 2009 3:00 PM
Answer

Andrew Grimo

Rank: New Member

Posts: 2

Join Date: June 12, 2009

Recent Posts

I'm interested in setting up a login area at the top of our site, just above the ".back-container" or portal window and am looking for insights into what would work.

I don't know that I could place the jsp code used in the login portlet into the velocity files, so I think I'm looking for ideas possibly using a standard web form. I've glanced at the html produced by liferay's login portlet but am unsure that this is a valuable direction to take.

What have others been doing for creating a custom login area using their velocity template files?

Thanks!
Hugo Palma
RE: Wishing to add a Sign In area from within portal_normal.vm
July 23, 2009 8:53 AM
Answer

Hugo Palma

Rank: New Member

Posts: 20

Join Date: September 13, 2007

Recent Posts

Did you find a way of doing this ?
I'm trying to achieve the same thing but getting nowhere.

Thanks
Aarti Jain
RE: Wishing to add a Sign In area from within portal_normal.vm
July 24, 2009 12:22 AM
Answer

Aarti Jain

Rank: Regular Member

Posts: 116

Join Date: September 2, 2008

Recent Posts

Hi Andrew,

To add a portlet using velocity template files you can refer this wiki article.

Regards,
Aarti Jain
Impetus Infotech Pvt. Ltd.
Noida
Hugo Palma
RE: Wishing to add a Sign In area from within portal_normal.vm
July 24, 2009 1:21 AM
Answer

Hugo Palma

Rank: New Member

Posts: 20

Join Date: September 13, 2007

Recent Posts

Aarti Jain:
To add a portlet using velocity template files you can refer this wiki article.


Seems Andrew isn't replying to this anymore, but as i'm having the same issue....
I've tried including the login portlet but the thing is that i want to a completely different look&feel for it when it's placed on the header section. One approach i tried was to pass a parameter to it like:

1$velocityPortletPreferences.setValue("inside-header", "true")
2$theme.runtime("58", "", $velocityPortletPreferences.toString())


And override the login.jsp to use that parameter and output different HTML depending on the parameter value. But i couldn't get access to the parameter. Any ideia how i can have access from login.jsp to a parameter passed from the place where the portlet is included ? Or any other ideia on how to accomplish this ?

Thanks again.
whyBish valid
RE: Wishing to add a Sign In area from within portal_normal.vm
July 26, 2009 1:19 PM
Answer

whyBish valid

Rank: Junior Member

Posts: 63

Join Date: July 9, 2009

Recent Posts

Stick it inside a named div so that your css selectors can be targetted to it.
Aaron Shackelford
RE: Wishing to add a Sign In area from within portal_normal.vm
February 28, 2010 9:01 AM
Answer

Aaron Shackelford

Rank: New Member

Posts: 2

Join Date: February 28, 2010

Recent Posts

That was helpful, where can one find a list of included portlets that can be called?

I found this older list of the variables that can be used:
http://content.liferay.com/4.3/misc/theme-api-4.3.0.html

Is there a similar one for the built-in out of the box portlets for 5.2?
Aaron Shackelford
RE: Wishing to add a Sign In area from within portal_normal.vm
February 28, 2010 11:21 AM
Answer

Aaron Shackelford

Rank: New Member

Posts: 2

Join Date: February 28, 2010

Recent Posts

Ok, I added the search bar a few weeks ago in the header by the following code:

<div align="center" class="search">
$theme.journalContentSearch()
</div>

Looks great,simple no frills and shows up right under the company logo.

I found the reference to liferay-portlet.xml for a portlet list. using the above as an example and to get anything to display I used the following:

<div align="right" class="login">
$theme.runtime("58")
</div>

This put the entire "fat" version of the login portlet into my header. Is there a pre-built theme that might have a login setup very similar to how facebook.com does it in the upper right?
Deepak Sharma
RE: Wishing to add a Sign In area from within portal_normal.vm
September 15, 2011 12:06 AM
Answer

Deepak Sharma

Rank: New Member

Posts: 4

Join Date: September 15, 2011

Recent Posts

Hello friends,
Does anyone able to achive this ? if yes then pls do share with me.
Looking forward for you quick reply.

Thanks
Deepak
Nikhil Nishchal
RE: Wishing to add a Sign In area from within portal_normal.vm
October 26, 2012 4:59 AM
Answer

Nikhil Nishchal

Rank: Junior Member

Posts: 74

Join Date: June 21, 2012

Recent Posts

You can add login portlet in theme VM by code:
$theme.runtime("58")

or
$taglibLiferay.runtime('58', '', '')

further u can modify login portlet using hooks on it, if required.