This wiki does not contain official documentation and is currently deprecated and read only. Please try reading the documentation on the Liferay Developer Network, the new site dedicated to Liferay documentation. DISCOVER Build your web site, collaborate with your colleagues, manage your content, and more. DEVELOP Build applications that run inside Liferay, extend the features provided out of the box with Liferay's APIs. DISTRIBUTE Let the world know about your app by publishing it in Liferay's marketplace. PARTICIPATE Become a part of Liferay's community, meet other Liferay users, and get involved in the open source project. « 返回到 Asset Publisher...
Asset Framework
(从 Asset Renderer 进行重定向)
Introduction #
The Asset framework allows any type of content to be displayed/edited/added in asset publisher. These type of content that use this framework are called assets and can be classified using tags and categories.
Assets defined in Core portlets #
By default, in the portal there are several types of content (assets) that implement the Asset Framework:
- Web Content
- Image Gallery Image
- Blog Entry
- Document Library Document
- Bookmark
- Message Board message
- Wiki page
- Calendar Event
And in the plugins, we have:
- Knowledge Base article
Disabling predefined assets #
Assets from the portal can be disabled using this property from portal.properties:
#
# Set a property with the prefix "asset.renderer.enabled." and a suffix
# with the asset renderer factory class name to enable or disable an asset
# renderer factory. The default setting is true. See LPS-6085 for more
# information.
#
#asset.renderer.enabled.com.liferay.portlet.documentlibrary.asset.DLFileEntryAssetRendererFactory=falseUsing the asset framework in custom portlets #
You can also create your own assets in a plugin using this framework. For detailed instructions check the chapter about the asset framework in the Developer Guide (direct links per version provided below):
71863 查看