SAML and Liferay
My presentation on SAML and Liferay in Liferay Nordic Symposium Warm-up Cruise.
My presentation on SAML and Liferay in Liferay Nordic Symposium Warm-up Cruise.
My presentation on SAML and Liferay in Liferay Nordic Symposium Warm-up Cruise.
The new 1080p HD Apple TV package from Amazon was waiting for me yesterday when I came from work to home. The package looks the same as previous version and contains the same things: the sleek black apple tv, aluminium IR remote and power cord. When you put the old and new side by side […]
Bank fees will add up quickly and you really shouldn’t need to pay your bank any fees. I primarily bank at Chase and they charge $6 account maintenance fee if you don’t have at least 5 debit card transactions or a minimum $500 direct deposit on your account. Now I have two checking accounts one […]
The post Don’t pay bank fees appeared first on My Money Matters.
Some time ago I posted on how you can get started creating portlets with Liferay Maven SDK now I’m going to show how you can add themes to your project. If you need a refresher on how to get started check out this post.
1) Open command prompt or terminal and go to your project directory. Next we are going to create a theme using the Liferay theme template. Run:
Now you have your theme project in sample-theme directory with following structure.
2) Open the theme pom.xml file. From the properties section remove liferay.version and liferay.auto.deploy.dir properties. These properties should be defined in the pom.xml in your project root just as we did with the portlet project.
You should also note that there’s two additional properties liferay.theme.parent and liferay.theme.type. These set the parent theme and the theme template language just like in ant based plugins sdk. The property liferay.theme.parent however allows you to define basically any war artifact as the parent. The syntax is groupId:artifactId:version or you can use the core themes: _unstyled, _styled, classic and control_panel.
3) Now you can add your customizations in src/main/webapp. Just follow the same structure as you would do in _diffs. So your custom.css would go to src/main/webapp/css/custom.css.
4) Once you’ve done your customizations and want to create the war file just run
It will create the war file just like with any maven war type project. Another thing it will do is download and copy your parent theme and then overlay your changes on top of it. It will also create a thumbnail from src/main/webapp/images/screenshot.png just like ant based plugins sdk does. These are accomplished by adding the theme-merge and build-thumbnail goals into the generate-sources phase.
5) Now deploy the theme into your Liferay bundle by running: