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
Related
I have a liferay theme for version 7.3. I am facing one problem in the theme's menu.
Now menu has some static items. How can I change (add / remove) items dynamically by admin account?
The menu is added in /src/templates/portal_normal.ftl as
<#include "${full_templates_path}/menu-bar.ftl" />
this file has static html data.
Now how can I make it dynamic so that admin can change the menu items?
Make the menu as a web content, and drag it to the theme? Not makes sense because menu is the part of the theme.
Or any other way of picking the menu items, looping the items in .ftl and display it?
The times of scripting navigation and menus in the theme are over, and I'd rather recommend to embed a portlet in your theme that does the job. That might be a stock NavigationMenu portlet (see how Liferay's default "classic theme" does this with NavigationMenu or the SearchBar), or a custom one, which generates exactly what you'd like.
Reason: It's a lot simpler to redeploy a new portlet and generate/test appropriate HTML markup generation in a portlet than it is to implement proper error handling in a theme's freemarker script.
The solution can be if you want to add your data in navigation menu in themes, go into the navigation menus inside site builder in menu and create a new menu by clicking + button on top right and name the menu. Then go into the pages inside site builder inside menu. There will be a + sign on public pages. Click that and add a page that you want to list. If you want to create a submenu then on the page that is created, create a subpage by clicking there + sign. The page will be child and will be shown as a sub menu in theme.
I currently have a older Domino site. It has a view that I have implemented clueTip to display content of the document as I hover over the link. The popup will close when the mouse is moved off of the link.
I would like to convert the site to xPages and eliminate jQuery and clueTip and go with all native xPages or dojo components but have similar behavior with my existing site.
One thought was to use the extension library dialog box but it has the title bar and I would rather not have the title bar.
Any idea how I can display contents from a notes document in a popup on my xpage view?
P.S. While the view is an old DOmino web view, the popup is a recent additon to the view and it is actually an xpage. I feed the clueTip control the URL of the xpage document via the rel parameter in the anchor tag and the xpage is displayed in a popup. If I could leverage that same xpage url that would be ideal.
Use Tooltip xe:tooltip control from Extension Library tab to show a document in a popup.
You can find a good example in XPages Extension Library Demo in Core_Tooltip.xsp.
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.
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.
I would like to utilize p:tabView for horizontal site menu.
When tab is clicked,that user should be redirected in non-ajax style to the specific page.
Is it possible to inject to each tab (e.g. inside p:tab tag) href link ?
Or there is already some alternative to it?
You could put the p:tabView in a template and set the activeIndex property according to the view ID of the current page. It's an ugly hack, but certainly do-able. I did something similar, using a p:menu on the left for navigation in the control panel section of my site.
Primefaces 3.4 now has a p:tabMenu component that may be of use.
You will have to manage the active tab manually since this is an undeveloped feature.