Place portlet under dockbar - liferay

I want to do a greetings portlet that will say: Good morning, %username% (Logout). I don't want to place it on dockbar (there is a limit of max characters count per dockbar child and i don't know how to remove that limitation), i want to place it under the dockbar (like in attached picture).
Is it possible? If not - how can i remove limit of max characters in dockbar child?
Using Liferay 6.2.

You can use theme.
You can modify the portal_normal.vm and embed your portlet in theme just like liferay is accessing the dockbar portlet.
Add some custom styles for positioning the portlet and you are good to go.

Related

How to edit default portlet in Liferay 7 Control Panel?

Is it possible to edit portlet/page in Control Panel in Liferay 7.0 ga4?
In my case, I want to add a custom column in Users table in 'Users and Organizations' section.
Yes, it's possible, and you do so just like you'd do for any other stock portlet. While there are extra mechanics to make them appear in control panel, you don't need to get in contact with these if you just modify.
Inspect the Dom to get a hint for the portlet that you're looking for.
An alternative that'd be better maintainable would be to write your own portlet instead of modifying an existing one. But that's not what you ask for here.

How to focus on blog portlet in liferay

is there a way to refocus on the blog portlet after clicking next/prev. when i click those buttons it goes to the top of the page.
We are using liferay 7, with freemarker. We are kind of new with liferay
I suppose you mean to scroll to the blog portlet when you say "focus on".
In this case the mechanism it is pretty simple:
IF in the DOM there is an element with a specific id attribute AND the url ends with #the-same-id-attribute then when the page is loaded it will scroll to that element.
The blog portlet has a unique attribute by default, you should append it to your next/prev buttons URLs.
Ref:
Fragment Identifier

Separte view.jsp for each RSS portlet

I have RSS feeds from 4 different websites grouped logically into two catgeories (Social and educational).I have created 1 RSS portlet for each of the category.Each portlet has link to two URL feeds.
I wanted to customize the look and feel of the feeds while they are displayed.For this I created a hook and modified view.jsp. But what I see is view.jsp changes only takes effect for the 2nd RSS portlet added.
Is there any way I can use the same view.jsp and conditional code for handling display of each of the RSS portlets? Any help would be appreciated. Thanks.
The way you have overridden view.jsp, you can also override configuration.jsp of the rss portlet. You can add one more select box and give it a name like preferences--feedStyle--. Provide number of style options that you want.
This will give you chance to get the configuration to select the style for individual portlet instance of RSS from Portlet configuration.
In the view.jsp, read the portlet configuration and based on that you can display the desired style.

Placement of portlets on a liferay page

I am using 1-2 Columns (70-30) layout for the page in liferay. The problem that I am facing is that I am not able to place them properly in 1-2 columns form even after dragging them properly on the page. I am making use of web content portlets. The portlet that should be placed on '30' side;its data appears the way I want on the RHS but the portlet window covers the entire screen. How should I place the portlets to get the exact 1-2 columns layout?
EDIT:
Is it possible to place a portlet over another portlet?
If the portlets that you are trying to place are custom portlets, It may be worth checking if custom css width property forcing portlet to occupy more width than supposed.
You can't place one portlet over another portlet. But "Nested Portlet" can be used to include more than one portlet in their own layout.
As you don't have public URL, I can only suggest steps to debug your issue.
Login to portal as Administrator.
Create a new page.
Apply liferay default classic theme to the page and apply 70-30 layout.
Add one Web content display portlet instance in column 1 and another in column 2.
Checkpoint: Enable Edit checkbox and see if the default portlet boundaries are occupying width they are supposed to take. If yes, then your liferay default working fine.
Checkpoint: Select your web content article and see if width of display changes. If Yes, then the problem is with with your web content article.
Checkpoint: Apply your theme and then see the issue. Then issue may be with your custom css files in _diff folder.
Use Firebug in Firefox or chrome dom viewer (F12 in chrome window) and observe which CSS style is causing the issue.

Set portlet as highlighted on add application panel

Liferay 6.2 CE
How exactly can one go about to set a portlet to show up on the highlighted category on the add application panel? I've been searching for hours, without any luck.
Have tried to define category name as "Highlighted", but it just creates a new one with the same name.
The main goal is just to have my own portlets sit on the top of the rest.
Cheers.
Configure the following settings (here with the defaults) in your portal-ext.properties:
##
## Dockbar Portlet
##
#
# Set the portlet ids that will be shown directly in the "Add Application"
# menu.
#
dockbar.add.portlets=56,101,110,71
Here you see that Liferay has the habit of numbering all the core portlets. Your own portlets ids will be constructed from their plugin name and the portlet id, e.g. the AmazingApp portlet that is deployed in the webapplication my-great-custom-plugins-portlet will have an ID of *amazingapp_WAR_mygreatcustompluginsportlet* (or similar). How can you find this out by yourself? Add it to the page, then choose "Look and Feel" and "Advanced Styling" - this will show the HTML id for your portlet, of which you can easily extract the actual portlet ID to use for portal-ext.properties.

Resources