Skip to content

Instantly share code, notes, and snippets.

View arvindm1's full-sized avatar

Arvind Mishra arvindm1

View GitHub Profile
@arvindm1
arvindm1 / liferay-7-wcm-adt-dump.ftl
Created November 24, 2015 22:04 — forked from jamesfalkner/liferay-7-wcm-adt-dump.ftl
A simple utility template to dump all available Liferay 7 WCM/ADT variables and their values.
<#-- 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 />
@arvindm1
arvindm1 / Ajax-Alloy-UI-Call.jsp
Created November 14, 2011 16:14
Ajax Alloy UI Call - JSP
<!-- Create a serveResource URL -->
<portlet:resourceURL var="ajaxCallResourceURL" />
<aui:script>
Liferay.provide(
window,
'<portlet:namespace />saveEntry',
function() {
var A = AUI();