Fórumok

Wishing to add a Sign In area from within portal_normal.vm

Andrew Grimo, módosítva 14 év-val korábban

Wishing to add a Sign In area from within portal_normal.vm

New Member Bejegyzések: 2 Csatlakozás dátuma: 2009.06.12. Legújabb bejegyzések
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, módosítva 14 év-val korábban

RE: Wishing to add a Sign In area from within portal_normal.vm

New Member Bejegyzések: 20 Csatlakozás dátuma: 2007.09.13. Legújabb bejegyzések
Did you find a way of doing this ?
I'm trying to achieve the same thing but getting nowhere.

Thanks
thumbnail
Aarti Jain, módosítva 14 év-val korábban

RE: Wishing to add a Sign In area from within portal_normal.vm

Regular Member Bejegyzések: 116 Csatlakozás dátuma: 2008.09.02. Legújabb bejegyzések
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, módosítva 14 év-val korábban

RE: Wishing to add a Sign In area from within portal_normal.vm

New Member Bejegyzések: 20 Csatlakozás dátuma: 2007.09.13. Legújabb bejegyzések
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:

$velocityPortletPreferences.setValue("inside-header", "true")
$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, módosítva 14 év-val korábban

RE: Wishing to add a Sign In area from within portal_normal.vm

Junior Member Bejegyzések: 63 Csatlakozás dátuma: 2009.07.10. Legújabb bejegyzések
Stick it inside a named div so that your css selectors can be targetted to it.
Aaron Shackelford, módosítva 14 év-val korábban

RE: Wishing to add a Sign In area from within portal_normal.vm

New Member Bejegyzések: 2 Csatlakozás dátuma: 2010.02.28. Legújabb bejegyzések
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, módosítva 14 év-val korábban

RE: Wishing to add a Sign In area from within portal_normal.vm

New Member Bejegyzések: 2 Csatlakozás dátuma: 2010.02.28. Legújabb bejegyzések
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, módosítva 12 év-val korábban

RE: Wishing to add a Sign In area from within portal_normal.vm

New Member Bejegyzések: 4 Csatlakozás dátuma: 2011.09.15. Legújabb bejegyzések
Hello friends,
Does anyone able to achive this ? if yes then pls do share with me.
Looking forward for you quick reply.

Thanks
Deepak
thumbnail
Nikhil Nishchal, módosítva 11 év-val korábban

RE: Wishing to add a Sign In area from within portal_normal.vm

Regular Member Bejegyzések: 176 Csatlakozás dátuma: 2012.06.22. Legújabb bejegyzések
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.