Foren

Home » Liferay IDE » English

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
zaheer mohammed saddapalli
How to customize classic t theme dockbar in Liferay 6?
5. August 2010 23:15
Antwort

zaheer mohammed saddapalli

Rang: Regular Member

Nachrichten: 164

Eintrittsdatum: 15. Januar 2008

Neue Beiträge

Dear All,

I am trying to customize classic theme dockbar in Liferay 6. I didn't find any information about the code where i can modify.

Here is the code which will render the dockbar
1#dockbar()
. Here i don't know where it is intialized.

Thanks in advance,

Saddapalli Mohammed Zaheer
Gregory Amerson
RE: How to customize classic t theme dockbar in Liferay 6?
6. August 2010 07:01
Antwort

Gregory Amerson

LIFERAY STAFF

Rang: Liferay Master

Nachrichten: 913

Eintrittsdatum: 16. Februar 2010

Neue Beiträge

Sorry I am no help with theme development but you could post over in the Liferay English > Custom Theme development forums and likely get an answer there.

http://www.liferay.com/community/forums/-/message_boards/category/239389
Shagul Khajamohideen
RE: How to customize classic t theme dockbar in Liferay 6?
6. August 2010 20:12
Antwort

Shagul Khajamohideen

Rang: Liferay Master

Nachrichten: 759

Eintrittsdatum: 27. September 2007

Neue Beiträge

Hi Zaheer,

Probably some moderator will move this post to appropriate category.

dockbar is the Out of the Box ( OOTB ) core portlet defined in portlet.xml and liferay-portlet.xml.

#dockbar() in theme is the macro defined in VM_liferay.vm file as below.

1
2#macro(dockbar)
3    $theme.runtime("145")
4#end


To customize the look and feel (css etc) you could probably do it in your theme for all the css classes specific to the dockbar.

To change the jsp behind the portlet itself you could look into hooks.

Also the below Wiki page may be of interest to you.

http://www.liferay.com/community/wiki/-/wiki/Main/Link+to+Dockbar
Dinesh Balaji
RE: How to customize classic t theme dockbar in Liferay 6?
16. Dezember 2010 23:20
Antwort

Dinesh Balaji

Rang: Junior Member

Nachrichten: 52

Eintrittsdatum: 6. Oktober 2010

Neue Beiträge

Hi Shagul,

My requirement is I need different dock bar for different themes. Since each user has different themes for them and their contents in the dockbar will also differ ,such as one will have the add option and other will not have any such options.

So how this thing can be achieved. Currently I have created a hook for the dock bar. And How to map this dockbar for a particular theme alone.

Thanks for the reply in advance emoticon
Vikash Pareek
RE: How to customize classic t theme dockbar in Liferay 6?
11. Dezember 2012 23:33
Antwort

Vikash Pareek

Rang: New Member

Nachrichten: 15

Eintrittsdatum: 10. Dezember 2012

Neue Beiträge

Hello to all,

I am new on liferay and this is my first thread on liferay. I have implemented a simple portal by just customizing the liferay portal.
But now this stage i am facing a problem that is how can i customize the view of my portal as in attached picture.
where goto link of dockbar moved to left side of the screen and which is static for each page in the portal except control panel page.
Is it possible by following way ?
1.search code (written for 'goto' link in dockbar).
2.create a portlet which has functionality similar to 'goto'(by using searched code of 'goto').
3.embedded that code in the theme at desired position.

So please guide me whether i proceed to these steps or some another way is in your mind for this;.
Anhang

Anhänge: screen shot.png (184,9k)
Vikash Pareek
RE: How to customize classic t theme dockbar in Liferay 6?
16. Dezember 2012 21:58
Antwort

Vikash Pareek

Rang: New Member

Nachrichten: 15

Eintrittsdatum: 10. Dezember 2012

Neue Beiträge

any idea about this ? please .....
Dave Weitzel
RE: How to customize classic t theme dockbar in Liferay 6?
17. Dezember 2012 08:21
Antwort

Dave Weitzel

Rang: Regular Member

Nachrichten: 169

Eintrittsdatum: 18. November 2009

Neue Beiträge

Hi Vikash
Your request is a bit confusing as you show a view of the portal that seems to be wrapped or something.
At first sight I thought you were actually working within the control panel.
the code for the dockbar is in the dockbar portlet
I would start by looking at the jsp files in:
webapps/ROOT/html/portlet/dockbar

the codein view.jsp will show you that for a particular user it uses:
<c:if test="<%= user.hasMySites() %>">
<li class="my-sites has-submenu" id="<portlet:namespace />mySites">
<a class="menu-button" href="javascript:;">
<span>
<liferay-ui:message key="go-to" />
</span>
</a>

<div class="aui-menu my-sites-menu aui-overlaycontext-hidden" id="<portlet:namespace />mySitesContainer">
<div class="aui-menu-content">
<liferay-ui:my-sites />
</div>
</div>
</li>
</c:if>

this shows you the sites list is genertaed bythe taglib <liferay-ui:my-sites />

so look in html/taglib/ui/my_sites

that code is what you will need

Dave
Vikash Pareek
RE: How to customize classic t theme dockbar in Liferay 6?
20. Januar 2013 22:04
Antwort

Vikash Pareek

Rang: New Member

Nachrichten: 15

Eintrittsdatum: 10. Dezember 2012

Neue Beiträge

Sorry for delay in reply.
Thanks Dave Sir,
it is quite helpful for me.
Actually this screen shot is my assumption and created in paint to show my assumption.
And as you thought that this screen shot looking like control panel, so you are right actually i want all the page of liferay look like control panel page which has a navigation portlet on the left.
That navigation portlet has all the links containing in Goto drop down list.
And that portlet is static such as dockbar which is visible in every page of portal except control panel.
So navigation is easy for users.