Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

One image with a link

The Image block (Image URL, Alt text, Link URL), or an image attribute printed in a template.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/build-two-ways/examples/build/single-image.md

On this page

One image with a link

One picture, linked to a page.

Life cycle: Build, example 11 of 35. Worked out on the Fit & Healthy site of Exponential 6.0.15+.

Contents

  1. In the Layouts editor
  2. With templates
  3. Which to choose
  4. Check

In the Layouts editor

  1. Open Layouts > Layouts and the layout Landing Page / Home; the editor opens it in a draft.
  2. Open the block palette (+ at the top left) and drag Image (group Basic) into the zone main.
  3. Select the block, open the Design tab and fill Image URL, Alt text and Link URL.
  4. Publish layout. The pages that use the layout show the block on their next view.

Image URL takes an address; an image from the Media library is addressed by its stored file (see the Hero walkthrough, which used a /var/<site>/storage/images/... path).

With templates

  1. Print the image field of a content item with an image alias, so the size is generated for you:
{def $article = fetch( 'content', 'node', hash( 'node_id', 93 ) )}
<a href={$article.url_alias|ezurl}>{attribute_view_gui attribute=$article.data_map.image image_class=i480}</a>
{undef $article}

Which to choose

The template way follows the content (a new picture on the article shows everywhere); the block holds one fixed address.

Check

  • The image has alternative text.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x