Posts

Showing posts with the label frontend

Liferay Fragment Collection Contributor

Image
  Liferay Fragment Collection Contributor Overview Liferay Fragment Collection Contributor is another way for deploying fragments. This approach has its own pros and cons, which will be reviewed later in this article, but should be considered as an option. Module structure Liferay module for a custom fragment collection contributor should have the following structure: Module files bnd.bnd: Bundle-Name : LifeDev Fragment Collection Contributor Bundle-SymbolicName : com.lifedev.fragment.collection.contributor Bundle-Version : 1.0.0 Web-ContextPath : /fragment-collection-contributor-lifedev -dsannotations-options : inherit As a Bundle-Name we specify a human-readable name of our module, e.g. “LifeDev Fragment Collection Contributor”. Bundle-SymbolicName is typically a fully-qualified package name, e.g. com.lifedev.fragment.collection.contributor. Bundle-Version is 1.0.0 initially, but can be increased when a new version is released. We also need to specify...

Liferay Fragments: Configuration

Image
  Liferay Fragments: Configuration Overview To more flexibility - Liferay fragments may have custom configuration options. This article will explain how to add configuration options to fragments and how to use them on a content page. Add Configuration Options In a fragment editor we can define fragment configuration on the “Configuration” tab: This sample adds configuration options to control the visibility of specific sections (Language and Personal Bar) in a fragment: {   "fieldSets" : [    {       "fields" : [        {           "name" : "showLanguage" ,           "label" : "Show Language" ,           "description" : "Show Language Widget" ,           "type" : "checkbox" ,         ...