when i select module fragment project i got this in maven environment and liferay dxp 7.3 version
(error:Please set a valid liferay portal runtime, you can initBundle or modify 'liferayHome' property to make it point to an existing runtime)
Related
how to import a theme in liferay 7 workspace?
I added the theme under workspace/themes and I tried to deploy it but did not work. The build type of my Theme is Ant.
The following picture shows the details:
I put the Theme under *sdk\com.liferay.portal.plugins.sdk-1.0.11\themes* and I tried to test it as in Liferay 6. Import-> Liferay Projects from plugins SDK then when adding the SDK I got an error :
app.server.dir is invalid. Please reconfigure Plugins SDK setting:
app.server.dir=path to liferay portal/tomcat-8.0.32
Then I tried to migrate the theme from the plugins sdk liferay workspace.
I puted the sdk under: liferay-workspace\plugins-sdk\sdk\com.liferay.portal.plugins.sdk-1.0.11
Then I tried this commande C:\Users\User1\workspace2\liferay-workspace>blade convert --themebuilder name_theme she does not return anything.
The structure of the original theme:
The css directory:
I fixed the problem app.server.dir is invalid. by switching the java jdk from 8 to 7 in eclipse.ini file:
-vm
D:/Program Files/Java/jdk1.7.79/bin/javaw.exe
When I did Import-> Liferay Projects from plugins SDK and I puted the SDK path, I got this error:
No available projects can be imported.
Do I need to upgrade it?
Update:
Sorry, I checked the compatibility of Theme. The theme is already compatible with Liferay 7 and no need to upgrade it.
<look-and-feel>
<compatibility>
<version>7.0.2+</version>
</compatibility>
...
</look-and-feel>
I am trying to import the Theme on Liferay 7.0.0 GA1.
1- I am using jdk 1.8 for eclipse Neon.3 Release (4.6.3).
Image description:
2- I updated sdk /build.{ username}.properties
Image description:
3- I putted the Theme under sdk\liferay-plugins-sdk-7.0\themes and I did Import-> Liferay Projects from plugins SDK and I putted the SDK path D:\FormationJEE\Liferay\Liferay7_g1\sdk\liferay-plugins-sdk-7.0. I do not find the theme. I did Refresh and it does not appear.
Image description:
I followed #OlafKock 's instructions:
I declared the compatibility with 7.0.0+ and when I did Import-> Liferay Projects from plugins SDK I did not have the right to put the path of sdk. It is set by default to this: D:\FormationJEE\Liferay\Liferay7_g1\sdk\liferay-plugins-sdk-7.0. I do not find the theme. I did Refresh and it does not appear.
Now, I can not change the path of sdk anymore. It is stuck at D:\FormationJEE\Liferay\Liferay7_g1\sdk\liferay-plugins-sdk-7.0. I can not test the theme on Liferay 7.0 GA5.
I fixed that by creating another workspace but still can not import the theme project.
4- Hello, I tried to migrate the theme from the plugins sdk to workspace using this command:
blade convert --themebuilder [THEME_PROJECT_NAME]
I typed the command and nothing happens.
I followed this link:
MIGRATING A THEME FROM THE PLUGINS SDK TO WORKSPACE
To upgrade existing liferay 6 theme refer following url
https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/upgrading-themes
use following command to upgrade your existing liferay 6 theme.
gulp upgrade
You can build liferay 7 theme using following url, and copy your existing liferay theme css, js and portal files to new theme directory.
https://web.liferay.com/web/smgulnaaz/blog/-/blogs/theme-creation-in-liferay-7
Not sure if this helps, but: Try 7.0 GA5. It might have fixed an issue that you're running into. Also, it might help the mismatch of your stated version and the declared compatibility
<look-and-feel>
<compatibility>
<version>7.0.2+</version>
</compatibility>
...
</look-and-feel>
7.0.2+ refers to "7.0 GA3 and later", but you state that you're using GA1.
Many issues have been fixed since then. Do a quick try declaring compatibility with 7.0.0+, but, by all means, use the most current version as a long term fix.
I cannot successfully compile an extension library that is freshly created using the Customization Project -> Extension Library -> Create New.
When compiling the freshly created extension library, I get the following error in the output, but no errors show in the error report:
1>C:\Program Files (x86)\Acumatica ERP\SilcotekDev\App_Data\Projects\ManufacturingTest\ManufacturingTest\Test.cs(6,7,6,9): error CS0246: The type or namespace name 'PX' could not be found (are you missing a using directive or an assembly reference?)
I have another custom extension library which had compiled successfully in the past, but today is not. Here is the full error list from that project's compilation:
I do have a custom DAC which I imported directly into the extension library, and I had compiled it before with that DAC added. Today it won't compile at all.
With update 3 of version 6.1 Acumatica has changed the target framework for its websites from 4.5.1 to 4.5.2. Unfortunately, the target version of the Addon.csproj VS project from the \App_Data\WebsiteSolution\Addon folder was not updated to .Net Framework 4.5.2 until update 9 of ver. 6.1 (build #6.10.0945). Because of the lower target version set for extension library VS project, VS cannot build the dll and therefore copy it to the Bin folder of your website.
There are 2 ways to resolve this type of an issue:
Change target framework version in VS for your extension library project:
Open the Addon.csproj VS project in a text editor, like NotePad, and change the target framework to v4.5.2 as shown in the screenshot below (located in the \App_Data\WebsiteSolution\Addon folder inside your Acumatica website root folder). Create a new customization project inside Acumatica, then in Customization Manager create extension library for the new project
There are a lot of things that could cause this problem.
1. is your program set up to read the PX namespace?
2. are you References setup the right way. You can always check by right clicking on the reference and selecting "Add reference"
I am new to Liferay and I deploy Liferay Audience Targeting -7.lpkg in deploy folder and restart my server still it's not showing in Liferay DXP
Then I check in GOGO Shell there Liferay Audience targeting module is showing but in Resolved state but when using diag on that module it's showing No resolution report for the bundle. Can't able to get where a problem is.GOGO Shell
I am not using GOGO Shell. However, I had similar issue with the Liferay DXP EE SP1 bundle. I had to restart my bundle for audience targeting to deploy properly the first time.
I also ran into an issue with not being able to add reports in campaigns. I found the following solution on the liferay forums that worked for me. You need the appropriate fixpack for Liferay DXP. If you have any issues with DXP with bundled HSQL, then you need to use MySQL or another database as HSQL is not supported
https://web.liferay.com/community/forums/-/message_boards/message/87413363
Hope this helps.
How can i change powered by liferay to custom label and hyperlink when clicking liferay . I am new to liferay development . Can some suggest to create hook for changing basic functionalities in liferay 7.
You need to write a fragment in Liferay 7
Here is the tutorial
https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/overriding-a-modules-jsps
The latest IDE Of Liferay (Released in Dec 2016) provides option to create Liferay fragment hook through IDE.
Previous IDE didnt had the support, other option is you can create through Blade.
To change powered by liferay you must create your custom theme for the liferay.
In liferay you can customize the liferay default theme and there you can modify powered by and liferay with any message as per your requirement.
For more info use these links: Creating theme and Creating basic theme.
Please describe me in brief how to create portlets using eclipse ide and to add these in liferay.
You can install the Liferay IDE (which comes as a plugin) in Eclipse, can download it from here.
And then create a Liferay project the same way as you create a normal Eclipse project by going to File --> New --> Liferay Project --> A window will open which will ask you about what kind of project you need to create in liferay (portlet, hooks, theme, ext, layout etc).
Some more links to get you started with Liferay IDE:
Installation guide for Liferay IDE
Getting started with Liferay IDE
Hope this helps.
File->New->Liferay project->
Enter the name
click ok
It will show project
and then goto docroot/WEB-INF/src
create a portlet here
Very simply, see the screencast: