Which parameter is required to display a specific asset using the Asset-Display Taglib?

Prepare for the Liferay Front End Test. Study with flashcards and multiple choice questions, each having hints and explanations. Get ready for your exam!

To display a specific asset using the Asset-Display Taglib, the classPK parameter is required. This parameter uniquely identifies the instance of the asset you want to display. In a typical Liferay setup, assets can include various content types like web content, documents, or images, and each of these instances is assigned a unique primary key (PK). The classPK serves as a key to fetch and display the correct asset on the page.

The className parameter is also significant, as it identifies the type of asset; however, without the classPK, the system would not know which specific asset instance to retrieve. Hence, classPK is essential when targeting a particular asset to ensure accurate rendering with the Taglib. Other parameters such as template or assetType have their uses in customizing the presentation or determining the nature of the asset but are not mandatory for identifying a specific asset instance.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy