Page-image Component: Renders the illustrative image of your page

Surfer600

About

page-image is a content component that chooses and renders one of the page images (illustration, thumbnail) defined for a page.

Example

This example shows the featured image of this page. We have set it to the image of the surfer below.

<page-image featured/>

Surfer600

Vignette

You may also choose a vignette as illustrative image

<page-image vignette width="600" shadow="md"/>

Page Image

Syntax

<page-image
   type="type"
   default="featured|first|ancestor|vignette|logo"
   path="path"
   zoom="int"
   linking="nolink|linkonly|direct|details"
/>

where

Multiple Meta Image selection

When the ratio is set, if there is more than one page image metadata the algorithm will select the image with the most equivalent ratio.

Support

Icon Support

When the image is an icon, the icon is by default zoomed out 4 times and centered.

<page-image icon path=":docs:content:icon" ratio="16:9" color="pink" width="198"/>

Card Support

A page-image is supported as illustrative image for a card

Example a card with data of this page with variable

<card clickable width="300">
    <page-image ratio="16:9"/>
    <heading 3>$h1</heading>
    $description [[$path| ]]
</card>
Surfer600
ComboStrap UI - Page Image Component

Page-image is a component that renders the illustrative image of the page and is generally used in a fragment.




Showcase yourself and your brand

Get free news, tips, and tricks
to create a remarkable experience for your readers.




Related HowTo's
Undraw Animating
How to generate and layout a list of pages with a grid and their image?

This howto shows you how to use the page sql, a fragment, the iterator and to generate a grid layout.
Undraw Animating
How to get a serie of images with the same dimension (Width and Height) ?

When rendering a serie of images, you may want them to have the same dimension (width and height) in order to get a consistent and peaceful visual. To achieve it, you need to use the combine the ratio...


Recommended Pages
Icon Default Location Combostrap
ComboStrap - Icon Component

An icon component that makes it easy to add icon to your pages
Card Illustration
ComboStrap UI - Card

A card is a box composed of an image, a text and a call to action
Featured Icon

The featured icon is an illustrative image that you can render with the page-image tag. This is an illustrative icon for the page. You would use it generally within an iterator. With the page image...
Surfer600
First image

The first image is an illustrative image that you can render with the page-image tag. As its name indicates, this is the first image found on your page. You would use it generally within an iterator....
Undraw Growth Chart R99m
How ComboStrap tackles SEO to bring you more visitors?

seoSearch engine optimization (or SEO) is the process of making your website optimized for search/enginesearch engine (Google, Bing, ...) to get to the top of their result. On a website level, it means:...
Main Header Slot Manager
Main Header Slot

The main header slot is a slot that will replace the default main header of your template. Below is an example of main header. where: breadcrumb is the hiearchical breadcrumb box is a box with...
Undraw Building Websites I78t
The iterator: Pages iteration made easy

With the fragment iterator, you can loop over a content fragment to create any list of page components such as the list of the last blog or recent pages
Undraw Add Content Re Vgqa
What is a Vignette ?

A vignette is an illustrative image that is generated from: the page title, the page category the modified date the logo (if a raster logo is available) You can render a vignette with the...
Undraw My Documents
What is the Category of a Page ?

The page category is the name of the parent page on the page system.



Task Runner