optipub-resources
This "optipub-element" retrieves all of the resources for a specific publication. Check out Getting Started With OptiPub Elements first.
Usage
Required Property
The
optipub-resources
element requires a "publication-id" property to be defined on the element.
<optipub-resources publication-id="1"></optipub-resources>
Custom Properties
Property | Description | Example |
---|---|---|
"image-size" | Used to determine the size of the thumbnail image displayed on the resources. | image-size="125px" |
"author-url" | Used to specify the dynamic property to build the links for the authors. | author-url="display_name" |
"author-url-prefix" | Used to specify the dynamic property to build the prefix of the links for the authors. | author-url-prefix="/editors/" |
"pagination" | Boolean property that determines whether to show a paginator | pagination |
"author-id" | Used to filter the resources by the specified author. | author-id="2" |
"category-id" | Used to filter the resources by the specified resource category. | category-id="3" |
"resource-id" | Used to get the resources that are related to the specified resource. | resource-id="7" |
"tag-id" | Used to filter the resources by the specified tag. | tag-id="4" |
"video-id" | Used to get the resources that are related to the specified video. | video-id="8" |
Complete Example
<optipub-resources
publication-id="1"
resource-id="1"
author-id="1"
category-id="2"
video-id="2"
tag-id="2"
author-url="display_name"
author-url-prefix="/editors/"
image-size="100px"
columns="title,description,active,display_on_website"
sort="rank|asc"
per-page="20"
page="1"
></optipub-resources>
Updated 10 months ago