Liferay’s asset framework is a system that allows you to add core Liferay features to your application. For example, if you’ve built an event management application that displays a list of upcoming events, you can use the asset framework to let users add tags, categories, or comments to make entries more self-descriptive.

Tags, categories, and comments are just a few of the features in Liferay’s asset framework. You’ll also find it easy to use: you’ll be infusing your application with these features in no time.

As background, the term asset refers to any type of content in the portal. This could be text, a file, a URL, an image, documents, blog entries, bookmarks, wiki pages, or anything you create in your applications.

The asset framework tutorials assume that you’ve used Liferay’s Service Builder to generate your persistence layer, that you’ve implemented permissions on the entities that you’re persisting, and that you’ve enabled them for search and indexing. If you’ve yet to do any of those things, you can see how each is done in respective Learning Paths Writing a Data-Driven Application, Setting Permissions, and Enabling Search and Indexing. Lastly, the Learning Path Asset Enabling Custom Entities takes you through the fundamentals of enabling an example application’s custom entities to use the asset framework. If you haven’t traveled through that Learning Path, we recommend you do so before continuing with the tutorials in this section.

The tutorials that follow in this section explore the details of leveraging the asset framework’s various features. Here are some features that you’ll give your users as you implement them in your app:

  • Associate tags to custom content types. Users can create and assign new tags or use existing tags.
  • Associate categories to custom content types.
  • Manage tags from the Control Panel. Administrators can even merge tags.
  • Manage categories from the Control Panel. This includes the ability to create category hierarchies.
  • Associate comments with assets.
  • Rate assets, using a five star rating system.
  • Assign social bookmarks to assets. Bookmark types include tweets, Facebook likes, and +1 (Google Plus).
  • Add custom fields to assets.
  • Relate assets to one another.
  • Flag an asset’s content as inappropriate.
  • Track the number of times an asset is viewed.
  • Integrate workflow with assets.
  • Publish asset content using the Asset Publisher portlet. The Asset Publisher lets you publish dynamic asset lists or manually selected asset lists. It can also show an asset summary view with a link to the full view.

At this point, you might be saying, “Liferay’s asset framework sounds great, but how do I leverage all of its awesome features?” Excellent question, and perfect timing!

Before diving head first into the tutorials, you must implement a way to let the framework know whenever any of your custom content entries is added, updated, or deleted. The next tutorial covers that. From that point onward, each tutorial shows you how to leverage a particular asset framework feature in your UI. It’s time to start your asset framework training!

Related Topics

Writing a Data-Driven Application

Setting Permissions

Enabling Search and Indexing

Asset Enabling Custom Entities

Liferay UI Taglibs

User Interfaces with AlloyUI

Adding, Updating, and Deleting Assets for Custom Entities

To use Liferay’s asset framework with an entity, you must inform the asset framework about each entity instance you create, modify, and delete. In this sense, it’s similar to informing Liferay’s...

Read More

Relating Assets

The ability to relate assets is one of the most powerful features of Liferay’s asset framework. By relating assets, you can connect individual pieces of content across your site or portal. This...

Read More

Implementing Asset Categorization and Tagging

At this point, you’ve asset-enabled your entities. In addition to that, you should make sure to implement asset renderers for them. Content authors, however, still can’t specify the tags and...

Read More

Rating Assets

Liferay’s asset framework supports a rating system that lets your users rate content in plugins. You’ve probably seen this in many of Liferay’s built-in plugins. A great example is the Blogs...

Read More

Commenting on Assets

Liferay’s asset framework facilitates discussions on individual pieces of content posted in a plugin. This is great because it lets discuss any posted content. Fortunately, most of the work is...

Read More

Apply Social Bookmarks

Social bookmarks in Liferay let users share portal content on social networks. When social bookmarks are enabled, a row of icons appears below the content that lets users share it with Twitter,...

Read More

Flagging Inappropriate Asset Content

As you’re undoubtedly aware, users can sometimes cross the line with what they post. When users are able to report inappropriate content, a greater sense of community and collaboration develops as...

Read More
0 (0 Votes)
Sharing Language Keys Between Your Portlets Previous