Photo Teaser Component

Build a teaser to another page.

On this page:

Last reviewed: November 11, 2022

Accessibility
  • Images require Alt text.
  • Link text should be meaningful.

> Read more about making this component accessible.

Using This Component

There are three tabs: Title, Text and Image.

Settings are adjusted in two places.

  • The pencil 'Edit' icon provides access to crop and rotate the image (once added).
  • The wrench 'Configure' icon provides access to add/clear the image and adjust settings in the other tabs.

The UBCMS optimizes images for best display on the user's device, but we recommend:

  • Vertical images between 600 - 1800 px tall.
  • Horizontal images between 800 - 2800 px wide.
  • Hero images work well with a 1900 px width.
  • Large images display clearest in full screen mode.
  • Do not skimp. Images may be pixelated in large settings.
    (Retina displays can show images at 2656 x 1744 px.)

Technical Restrictions

  1. Image formats are limited to JPG, GIF, and PNG. (JPGs are recommended for best results and faster load times.)
  2. Alt Text is required by New York State policy, unless your image is purely decorative and does not aid in navigation.
  3. You do not have the option of selecting a particular size for your image; Small Landscape (140 pixels wide x 88 pixels tall) is the default size.

Edit (pencil icon) - Image Crop and rotate

The pencil icon ('edit') provides access to photo-editing tools. When you click the icon, a toolbar will display, with options to Crop, Rotate, and Enter Fullscreen mode.

Use the Wrench icon to configure all other settings.

screenshot of the component when first opened in Edit mode.

initial Edit toolbar

Known Issue

When you first add this component, always Configure it (wrench icon) before you click Edit (pencil icon).

Editing this component BEFORE a photo is added will generate an error "Sorry, could not start image editor..."

For more control on cropping, try the Adapative Crop options in the Advanced settings.

Configure (wrench icon) - Main Settings

The wrench 'Configure' icon provides access to add/clear the image and change settings in the other tabs.

Title Tab

Heading: Type a title for your Photo Teaser.

Link to: Add the corresponding URL or use the magnifying glass to browse for a target page within the UBCMS.

Alt text: Add a description of the image for users who may have difficulty seeing it.

  • Alt text is required by New York State policy for most images and is always required if the image has a link or if the zoom feature is enabled, otherwise a caption can serve instead.
  • Blanks or a carriage return are not in compliance and will be blocked.
  • A period and space are now added at the end of any alt text that does not already end with punctuation. (This is not visible in the dialog box.) This increases the clarity with which a screen reader reads the page.
  • See webaim.org for tips on writing alt text.
  • If you change the image, you will be reminded to check the alt text for accuracy.

Hide border: Specify whether you would like to show or hide a border around your image. If you select Show border a thin gray line will frame your image. The border is hidden by default.

Alt Text is generally required under state and federal accessibility laws.  Read more about Alternative Text.

Text Tab

Add descriptive text to your Photo Teaser. When you view your Photo Teaser, this text will appear below the heading and to the right of the image.

Image Tab

The wrench icon ('configure') provides access to add/clear the image and change settings in the other tabs. Use the pencil icon to edit the image (crop or rotate).

  • Give your Photo Teaser an image by dragging one from Content Browser into the Image Tab.
  • Alternately, click within the empty Image tab and then upload an image to embed it into the page.
  • If you already have an image in the Image tab but desire to replace it with a different one, click the Clear button adjacent to the crop/rotate tools.

Only JPG, GIF and PNG formats are allowed. JPGs are recommended for best results and faster load times.

Adaptive Crop

The image allows for use of the Adaptive Crop tool.

  • Adapative Crop is applied to your original image after any Image Size changes.
  • These modifications override any changes previously made with the main Crop tool. You will be asked 'Would you like to override the native crop and use the adaptive crop?' Click Override to get started.
  • Flexible Height is applied to your desktop image after Adaptive Crop adjustments and has no impact on mobile or teaser images.

The tool approximates how your original image will be cropped for desktop, mobile and teaser (thumbnail) views, allowing adjustments to better represent your desired focus in these contexts.

The interface responds to the main Image Size setting. Set the Image Size, then drag the Adaptive Crop cross-hairs to the center of your desired focus, and adjust the three sliders as desired to highlight the three zones.

The interface approximates the final displays. After you make your adjustments, we suggest you preview the results (e.g. using the mobile device emulator). And if you realize the List thumbnail is not working out as desired, consider also loading an image into page Properties that is cropped exactly as desired, where it will be used preferentially for teasers.

Accessibility Concerns

See an Example

An Example With Placeholders

Photo Teaser

Combine a header, image, link and text all in one component with the Photo Teaser.

Group Photo Teasers together for a powerful visual effect:

UB South Campus

South Campus is situated along Main Street in northeastern Buffalo.

UB Downtown Campus

The Downtown Campus is in close proximity to the Allentown and Fruit Belt neighborhoods of Buffalo.

Related Components

Was This Information Helpful?

(Required)
(Required)
(so we can thank you or request more details)
(Required)
(buffalo.edu addresses only please)
(Required)