Skip to content

Commit

Permalink
LPS-56383 add example
Browse files Browse the repository at this point in the history
  • Loading branch information
juliocamarero authored and brianchandotcom committed Jun 30, 2015
1 parent 0e60314 commit 73b5d09
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions readme/7.0/BREAKING_CHANGES.markdown
Expand Up @@ -2053,6 +2053,19 @@ This affects developers using the `liferay-ui:journal-article` tag.

Use the `liferay-ui:asset-display` taglib instead.

Old code:

<liferay-ui:journal-article
articleId="<%= article.getArticleId() %>"
/>

New code:

<liferay-ui:asset-display
className="<%= JournalArticleResource.class.getName() %>"
template="<%= article.getResourcePrimKey() %>"
/>

#### Why was this change made?

The `liferay-ui:asset-display` is a generic way to display any type of asset.
Expand Down

0 comments on commit 73b5d09

Please sign in to comment.