liferay-theme

Work with Bootstrap 3.3.6 in Liferay 6.2

爷,独闯天下 提交于 2019-12-19 07:37:27
问题 I'm working with Bootstrap 3 in Liferay 6.2. I inserted the bootstrap.css and bootstrap.min.js in the CSS and JS. I've also changed some style in my custom.css incompatilibilidad Do you have a better idea of ​​it? Then I attached the steps I followed to insert Bootstrap 3 in my Liferay 6.2. Well above gives me a few compatibility issues ... I would like your opinion, for eg if a more optimal code to work with these tools and these versions. I need your help to improve this and that everyone

Using custom services or liferay services in liferay themes (velocity templates)?

纵然是瞬间 提交于 2019-12-19 04:05:10
问题 How to use custom services method in liferay themes in velocity files like init_custom.vm , portal_normal.vm etc. I see liferay provides a lot of variables of helper utility classes like $portalUtil for PortalUtil, $getterUtil for GetterUtil and so on, inside the init.vm file. So is it possible to get instance of my custom services like an instance of com.my.custom.service.MyCustomLocalServiceImpl or services of liferay from UserLocalServiceImpl ? Here is some psuedo code, to give an idea of

How do I get Sites of which the user is a member in Liferay theme?

邮差的信 提交于 2019-12-12 09:16:18
问题 In Liferay 6.1 custom theme - How can I get Sites for a user that it is a member of in a theme? I have seen how the dockbar Go to/My sites gets generated via the Liferay UI taglib. However, I want to get a list of user's sites and list them as part of super navigation bar separate from the dockbar options. Is this possible and what is the API call to get the user's sites in a list? Thanks in advance. 回答1: From the user object you can retrieve the groups he belongs to: $user.mySites This

Liferay 7.0 - making all Portlets Borderless by default via theme

早过忘川 提交于 2019-12-12 04:34:26
问题 After searching for a solution to the problem of setting portlets default look and feel through the theme, I have tried the following in WEB-INF/liferay-look-and-feel.xml : <setting configurable="true" key="portlet-setup-show-borders-default" type="checkbox" value="false" /> However, it does not seem to work on Liferay 7.0 GA3, and have run out of places to look for a solution. My requirements are for a default portlet behavious where all decaration is disabled, i.e. borders and title and

Move collapsed menu button from the dockbar

不羁的心 提交于 2019-12-12 03:23:01
问题 I need to hide dockbar for non logged in guests. I did that by creating custom theme that uses welcome-theme as a parent, and the following snippet: #if($is_signed_in) #dockbar() #end in theme's templates\portal_normal.vm. This presents another problem - when page reorders to fit a mobile screen, menu collapses to a button in the dockbar which is hidden. I would love to have it collapse somewhere else, just that it isn't hidden - for example next to the small logo / site title, or as a first

Migrating a website from OpenCms to LIferay

橙三吉。 提交于 2019-12-12 01:44:18
问题 A website is currently in OpenCms which needs to be migrated to Liferay framework as is. There is a concept of JSP templates in OpenCms. Is it possible to replicate the concept of jsp templates which is present in OpenCms into themes/layouts in liferay? OpenCms templates use cms tags like <cms: /> How will it be possible for me to transfer this entire website from OpenCms into Liferay? I have googled a lot regarding this but I did not get any answer for this. Help will be appreciated. EDIT:

How to write a java class to be accessed in liferay theme?

旧时模样 提交于 2019-12-11 13:29:26
问题 I have a Scenario where I have a java class written in JSP and its members are used in that JSP itself. The JSP is part of a liferay portlet. Now, I need to write that class for the velocity template in liferay theme so that I can access it in navigation.vm file. Following is a dummy snippet - xyz.jsp (part) <body> <% final class DummyABC { public String method1() { } public String method2() { } public String method3() { } } %> </body> I need to access this class in my navigation.vm file.

Dropdown on hover is moving towards left of dropdown image in jQuery

旧街凉风 提交于 2019-12-11 04:18:12
问题 I'm using jQuery for dropdown on hover in Liferay. The dropdown works absolutely fine when I run this jQuery as a separate HTML file, but if I use the same Jquery using the Liferay theme and add HTML in the web content section, the dropdown moves slightly to the left. Below is my CSS, HTML and jQuery code: /* Flex Level Drop Down Menu * Created: Jan 5th, 2010 by DynamicDrive.com. This notice must stay intact for usage * Author: Dynamic Drive at http://www.dynamicdrive.com/ * Visit http://www

rendering Liferay page URLs inside of portlets Liferay 6.1

[亡魂溺海] 提交于 2019-12-09 13:28:03
问题 I'm new to liferay and I'm almost positive this is blazingly simple to do: Using velocity markup, I want to be able to generate links to pages within my Liferay website and embed them inside of my portlets on different pages. I have a vague idea of how it might be done so I searched around figuring it would be posted somewhere, but I can't find anything on it. Incidentally, I want to put whatever code I come up with inside the view.jsp of the portlet. I would use velocity markup here but I

Including jQuery and other JS files in Liferay Theme

随声附和 提交于 2019-12-05 02:36:16
I use Liferay 6.1 and I created my theme ( sample-theme ) and I want add jQuery . How can I do that? Why I have folders: sample-theme and liferay-work and both have folders: css, js, templates? I created folder _diffs and subfolder js and there copy jQuery and add in portal_normal.vm : <script src="/html/js/jquery/jquery-1.8.2.min.js"></script> And I don't see any changes, Why? How can I add jQuery? Not only to a single portlet but for all. I don't have folder docroot I am use Maven and in src/main/webapp I created folder _diffs and inside folder js , there I add jquery.js and in _diffs