Skip to content

Instantly share code, notes, and snippets.

@bryceosterhaus
Last active October 27, 2016 10:01
Show Gist options
  • Save bryceosterhaus/8cd4c910e90daeb0b559 to your computer and use it in GitHub Desktop.
Save bryceosterhaus/8cd4c910e90daeb0b559 to your computer and use it in GitHub Desktop.
creator+feed
<%--
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
--%>
<aui:row cssClass="asset-card-entries" id="assetCardEntries"></aui:row>
<%-- <loop-ui:loading-spinner name="assetCardEntriesLoading" /> --%>
<aui:script use="liferay-loop-asset-feed">
var Loop = Liferay.Loop;
var feedContainer = A.one('#${renderResponse.namespace}assetCardEntries');
var id = ${streamScope.classNameId} + '-' + ${streamScope.classPK};
var container = RC.createElement(
RC.Provider,
{
store: RC.store
},
RC.createElement(
'div',
{},
RC.createElement(RC.RootModal),
RC.createElement(RC.CreatePost),
RC.createElement(
RC.Feed,
{
itemsPerPage: <%= PortletPropsValues.LOOP_FEED_PAGE_DEFAULT_DELTA %>,
id: id
}
)
)
);
RC.render(container, feedContainer._node);
</aui:script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment