optipub-resource

This "optipub-element" retrieves the specified resource. Check out Getting Started With OptiPub Elements first.

Usage

❗️

Required Property

The optipub-resource element requires a resource-id property to be defined on the element.

<optipub-resource resource-id="1"></optipub-resource>

Custom Properties

PropertyDescriptionExample
"author-image-size"Used to determine the size of the author thumbnail image displayed on the resource.author-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/"

Complete Example

<optipub-resource
                 resource-id="1"
                 author-url-suffix="display_name"
                 author-url-prefix="/editors/"
                 author-image-size="100px"
                 columns="title,description,active,display_on_website"
                 sort="rank"
                 sort-direction="asc"
                 per-page="20"
                 page="1"
></optipub-resource>