b2evolution b2evolution

  • Sign in
  • Sign up
  • About
  • Downloads
  • Hosting
  • Docs
  • Support
  • Sign in
  • Sign up
  • Manuals Home
  • Latest Updates
 
  1. b2evolution CMS User Manual
  2. Back-office Reference
  3. Collections
  4. Contents
  5. Short Tags Reference
  6. [thumbnail:] Short Tag

[thumbnail:] Short Tag

Built-in Feature

[thumbnail:123] will insert the attached image file having ID 123 as a thumbnail, typically a smaller image floating left or right of the main text.

The inline [thumbnail:] tag is a placeholder inserted in the content to be replaced by a thumbnail image when the post is displayed. That image must be already uploaded to the server and attached to the post. It can also be manually typed in the content by following the required syntax.

Note: the [thumbnail:...] short tag generates an inline element (<a href=...><img></a>) and can appear anywhere (inside a paragraph, table, etc.)

See also: [image:] Short Tag and [inline:] Short Tag.

Syntax Breakdown

[thumbnail: Link ID [ : Size [ : Alignment [ :. Class ] ] ] ]

Available in an upcoming release [thumbnail: Link ID [ : HRef ] [ : Size [ : Alignment [ :. Class ] ] ] ]

TODO [thumbnail: Link ID [ : Alt text ] [ : HRef ] [ : Size ] [ : Alignment ] [ :. Class ] ]

TODO Several params are optional. You can either skip them by leaving them empty (::) or you may skip them completely because the next param will be recognized by its specific content.

  • Link ID : ID of an attached image to the current Item. This is a number that is automatically created when you attach an image to a post in the Item Images & Attachments Panel. The tag will not be rendered in the following cases:
    • If an invalid ID is provided
    • If the ID refers to a file that is not an image
    • If the ID refers to an image but that image is assigned to any display position other than "Inline".
  • Available in an upcoming release Alt text : By default, the image will be displayed with the Alt text that has been entered in the File properties of the linked File. This parameter of the short tag allows you to:
    • Override the default Alt text by explicitly specifying one here
    • Not display any alt text by specifying -

      Note: if the alt text param you specify starts with a . it will be considered to be a class name (see below),
      if it looks HRef like http://... or ((slug-name)) it will be considered to be a HRef (see below).
      The Alt text cannot be a single word like small, medium, large, left or right because in that case b2evolution will consider this to be the Size or Alignment param.
  • Available in an upcoming release HRef : By default, the image will link to the original file on disk, which will display a Lightbox / Colorbox in most skins. This parameter allows to override this href= URL in 3 different ways:
    • http://... or https://...
    • ((slug-name))
    • (()) : means : no link.
  • Size : small, medium or large (If omitted, the default is medium)
  • Alignment : left or right (If omitted, the default is left)
    • TODO inline : do not float the thumbnail (unless you specific some CSS classes that do special floats).
  • Class : can be any CSS class name. The class name must start with a dot. Multiple class names can be specified, separated by a dot. See: Common Helper CSS Classes You may add your own classes.

Samples

  • [thumbnail:123]
  • [thumbnail:123:small]
  • [thumbnail:234:medium:right]
  • [thumbnail:345:large:left:.redborder]
  • [thumbnail:456:medium:right:.redborder.squared]
Tags: 7.0.2, CSS, classes, image, styles, styling, thumbnail
Created by fplanque • Last edit by yurabakhtin on 2020-07-02 17:06 • •

No feedback yet

On this page

  • Built-in Feature
  • Syntax Breakdown
  • Samples

Search the Manual

Content Hierarchy

  • b2evolution CMS User Manual
  • User's Guide
  • Installation / Upgrade
  • Front-office Reference
  • Back-office Reference
    • Site
    • Collections
      • Collection Dashboard
      • Contents
        • Post Browsing Screens
        • Post Edit Screen
        • Short Tags Reference
          • Helper CSS Classes
          • Custom Fields Short Tags
          • [audio:]
          • [cblock:]
          • [div:]
          • [emailcapture:]
          • [file:]
          • [image:]
          • [include:]
          • [inline:]
          • [pagebreak]
          • [poll:]
          • [subscribe:]
          • [switcher:]
          • [teaserbreak]
          • [thumbnail:]
          • [video:]
        • Post Concepts
        • Mass Edit
        • Mass Post Contents
        • Other post actions
        • Renderers Reference
      • Comments
      • Categories
      • Features
      • Skins
      • Widgets
      • Settings
      • Creating a new collection
    • Files
    • Analytics
    • Users
    • Messages
    • Emails
    • System
    • Working with Results Tables
  • Developer Reference
  • Operations Reference
  • Advanced Topics
  • Glossary
  • Archives
Web Site Builder

This online manual is powered by b2evolution CMS – A complete engine for your website.

About b2evolution

  • What is it?
  • Features
  • Getting Started
  • Screenshots
  • Online demo
  • Testimonials
  • Design philosophy
  • Free & open source
  • Terms of service

Downloads

  • Latest releases
  • Skins
  • Plugins
  • Language packs

About us

  • About us
  • Contact

Webhosting Guide

  • Web hosting blog
  • Best web hosting
  • Cheap web hosting
  • Green web hosting
  • Hosting with SSH
  • VPS hosting
  • Dedicated servers
  • Reseller hosting
  • Int'l: UK / France

Docs & Support

  • Online manual
  • Forums
  • Hire a pro !

Other

  • Adsense
  • Press room
  • Privacy policy

Stay in touch

  • GitHub
  • Twitter
  • Facebook
  • LinkedIn
  • News blog
  • RSS feed
  • Atom feed

Founded & Maintained by François Planque