liferay-6

css not getting applied for velocity template in Liferay Theme

无人久伴 提交于 2021-01-29 02:05:29
问题 I am using LIferay Theme to create a theme for a website. IN the portal_normal.vm file, I have included all the html code and css I have defined in custom.css THe problem is that css from custom.css is not getting applied to portal_normal.vm page SHould I include some file in velocity file which tells that custom.css should be included? Also is it ok to include all css code in velocity? Regards EDIT: custom.css and portal_normal.vm are inside _diffs folder 回答1: put the custom.css under ~

css not getting applied for velocity template in Liferay Theme

无人久伴 提交于 2021-01-29 02:04:04
问题 I am using LIferay Theme to create a theme for a website. IN the portal_normal.vm file, I have included all the html code and css I have defined in custom.css THe problem is that css from custom.css is not getting applied to portal_normal.vm page SHould I include some file in velocity file which tells that custom.css should be included? Also is it ok to include all css code in velocity? Regards EDIT: custom.css and portal_normal.vm are inside _diffs folder 回答1: put the custom.css under ~

css not getting applied for velocity template in Liferay Theme

浪尽此生 提交于 2021-01-29 02:02:04
问题 I am using LIferay Theme to create a theme for a website. IN the portal_normal.vm file, I have included all the html code and css I have defined in custom.css THe problem is that css from custom.css is not getting applied to portal_normal.vm page SHould I include some file in velocity file which tells that custom.css should be included? Also is it ok to include all css code in velocity? Regards EDIT: custom.css and portal_normal.vm are inside _diffs folder 回答1: put the custom.css under ~

How to use Liferay Mobile SDK 6.2.18 to generate jar libraries now that http is deprecated by both Gradle and Maven?

穿精又带淫゛_ 提交于 2020-02-27 02:25:07
问题 In my current project we're working on mantaining/developing mobile (android/iOS) apps that use the services of the client's website (liferay 6.2). Whenever the guys in Backend generate new services (or just update an existing service to a new version with new features) we need to use the Liferay Mobile SDK 6.2.18, which uses really dated gradle 1 and http protocol, to generate a new jar library to allow the app call those new services. As I guess many will know already, gradle recently

How to create a download button for multiple files using Liferay and JavaScript?

人盡茶涼 提交于 2020-01-28 10:23:50
问题 I am trying to make a button when clicking, it downloads the files in a zip file. I tried to load the files into the Zip from given url. I am using Liferay 6.1 . Is the script declaration in the JSP file correct? I have already specified jszip.js in liferay-portlet.xml. <footer-portlet-javascript>/js/jszip.js</footer-portlet-javascript> Do I have to use the Liferay AUI Taglib tag or a simple javaScript tag should do the work? <aui:script></aui:script> or <script type="text/javascript"><

How to create a download button for multiple files using Liferay and JavaScript?

北城以北 提交于 2020-01-28 10:22:43
问题 I am trying to make a button when clicking, it downloads the files in a zip file. I tried to load the files into the Zip from given url. I am using Liferay 6.1 . Is the script declaration in the JSP file correct? I have already specified jszip.js in liferay-portlet.xml. <footer-portlet-javascript>/js/jszip.js</footer-portlet-javascript> Do I have to use the Liferay AUI Taglib tag or a simple javaScript tag should do the work? <aui:script></aui:script> or <script type="text/javascript"><

Liferay velocity template showing only first image for repeatable image field

纵饮孤独 提交于 2020-01-17 04:59:26
问题 I have created structures and template for adding the events. The input I have taken is: year with month, image for the event, description for the event. All the data is displaying properly except image. The image which I have given first is displaying for each event. Can any one help me? <root available-locales="en_US" default-locale="en_US"> <dynamic-element dataType="html" fieldNamespace="ddm" indexType="keyword" name="about_fe" readOnly="false" repeatable="false" required="false"

How to assign site roles for user group programatically in liferay

折月煮酒 提交于 2020-01-16 00:35:06
问题 I am able to assign the site roles for user programatically by following API call, UserGroupRoleLocalServiceUtil.addUserGroupRoles(userIds, mySite, SiteroleIds); In the similar fashion can any one tell me that how can I assign the site roles for UserGroup programatically? I have both usergroupID and SiteRoleId in my method so what API method should I need to call to assign the site roles for the user group? 回答1: You can use addUserGroupGroupRoles(long userGroupId, long groupId, long[] roleIds

Customize permissions for Site Administrator role in Life ray?

半腔热情 提交于 2020-01-14 22:51:23
问题 I want to customize the Site Administrator Role permissions i.e, I need to enable a feature for creating the users for site administration under respective site. How can I achieve that? Do I need to achieve it with Hook OR need to create EXT? OR any other simpler way to achieve that? I need to enable the user creation and assign permission for Site Administrator under respective site. I don't want to crate users by Super admin. 回答1: Maybe you can create a custom portlet, put it in control

Liferay concatenate and compress javascript

心不动则不痛 提交于 2020-01-13 03:22:11
问题 I am trying to figure out how to achieve compression and minification for all my js files. Currently i have them in a hook plugin under /html/js/mycustomjs/ folder. I understand that liferay has its own mechanism to compress javascripts, in barebone.jsp or everything.jsp, and found the list of files declared in the javascript.barebone.files and javascript.everything.files properties on portal.properties . The question is, can i use this mechanism to compress js files of my own ? should i