This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <#-- Add this code before the </#if> tag of your "Basic List" ADT --> | |
| <#else> | |
| ${renderRequest.setAttribute("PORTLET_CONFIGURATOR_VISIBILITY", true)} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <#-- Copy this code to your "Enhanced List" ADT --> | |
| <#assign aui = taglibLiferayHash["/WEB-INF/tld/aui.tld"] /> | |
| <#assign liferay_portlet = taglibLiferayHash["/WEB-INF/tld/liferay-portlet.tld"] /> | |
| <#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> | |
| <#if entries?has_content> | |
| <#list entries as curEntry> | |
| <#assign assetRenderer = curEntry.getAssetRenderer() /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="asset-abstract container-fluid"> | |
| <div class="index span1" style="text-align:center"> | |
| <h1>${curEntry_index +1}<h1> | |
| </div> | |
| <div class="asset-image span2"> | |
| <img src="${assetRenderer.getThumbnailPath(renderRequest)}" /> | |
| </div> | |
| <div class="asset-content span7"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <#-- Wrap the code inside the if clause of your "Enhanced List" ADT with this code --> | |
| <@liferay_ui["tabs"] | |
| names="list,chart" | |
| refresh=false | |
| type="pills" | |
| value="chart" | |
| > | |
| <@liferay_ui["section"]> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <repositories> | |
| <repository> | |
| <id>lrce</id> | |
| <url>https://repository.liferay.com/nexus/content/groups/liferay-ce/</url> | |
| <releases> | |
| <enabled>true</enabled> | |
| </releases> | |
| <snapshots> | |
| <enabled>false</enabled> | |
| </snapshots> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import com.liferay.portal.model.Layout; | |
| import com.liferay.portal.service.LayoutLocalServiceUtil; | |
| import com.liferay.portal.service.ServiceContext; | |
| Layout toDelete = LayoutLocalServiceUtil.getFriendlyURLLayout(10182, false, "/somepage"); | |
| LayoutLocalServiceUtil.deleteLayout(toDelete, true, new ServiceContext()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <#-- dump.ftl | |
| -- | |
| -- Generates tree representations of data model items. | |
| -- | |
| -- Usage: | |
| -- <#import "dump.ftl" as dumper> | |
| -- | |
| -- <#assign foo = something.in["your"].data[0].model /> | |
| -- | |
| -- <@dumper.dump foo /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <plugin> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <artifactId>exec-maven-plugin</artifactId> | |
| <version>1.2.1</version> | |
| <executions> | |
| <execution> | |
| <id>exec-npm-install</id> | |
| <phase>generate-sources</phase> | |
| <configuration> | |
| <executable>npm</executable> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo "Hi this is revision 4" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # This script will install istio and the coolstore-microservice demo as a service mesh. | |
| # It does everything as a cluster-admin user because istio (the project) still needs it to | |
| # work. Future versions will not require so many permissions! | |
| # | |
| # Maintainer: James Falkner <jfalkner@redhat.com> | |
| # | |
| # Prereqs: | |
| # |