How to set a default thumbnail in AnQiCMS to ensure that articles without uploaded thumbnails can still display images?

Calendar 👁️ 77

It is crucial to maintain the visual appeal and consistency of content in website content operation.Many times, the articles we publish may not have specific images, or we may have omitted uploading the thumbnail when editing, which may result in blank pages or inconsistent styles on the page.AnQiCMS (AnQiCMS) fully considers this user demand, providing flexible default thumbnail setting functions to ensure that articles without separately uploaded thumbnails can also have beautiful image displays.

Why is it necessary to set a default thumbnail?

The default thumbnail is like a website's 'backup plan', it can effectively solve the following problems:

first, Enhance visual consistencyWhen thumbnail images are needed on a website's article list, recommended positions, and other places, if some articles do not have them, the blank areas will not look professional.A unified default thumbnail can fill these gaps, making the entire page look more complete and organized.

secondly,optimize user experienceThe image is more eye-catching than text, a suitable thumbnail can quickly convey the theme of the article, and attract users to click.Even common images can enhance the click-through rate of an article to some extent, reducing users' reading fatigue.

Moreover,Simplify the content publishing process. For websites with a large amount of content, carefully selecting or creating thumbnails for each article takes a lot of time.After setting the default thumbnail, the content editor can focus more on the content of the article itself, without worrying about missing illustrations, AnQiCMS will automatically apply the default image to articles without thumbnails.

How to set the default thumbnail in AnQiCMS

Setting the default thumbnail in AnQiCMS is a simple and intuitive process, it only takes a few steps to complete:

  1. Log in to the back-end management interface:Log in to your AnQiCMS management backend.
  2. Navigate to the content settings:In the left function menu, find and click "Background Settings", and then select "Content Settings" from the expanded submenu.
  3. Find the option: "Default Thumbnail".On the "Content Settings" page, you will see a series of options related to content processing. Scroll down to find a section named "Default Thumbnail".
  4. Upload or select an image:In the "default thumbnail" area, there is usually a button to upload or select an image.Click it, you can upload an image from your local device or select one from AnQiCMS' existing image library as the default thumbnail.Suggest choosing an image with universality, which can represent the style of the website.
  5. Save settings:After selecting the image, please make sure to click the "Save" or "Submit" button at the bottom of the page to ensure that your settings take effect.

After completing these steps, whenever you publish an article without uploading a thumbnail separately, AnQiCMS will automatically display the default thumbnail you have set.In addition, if the article content contains images, AnQiCMS will prioritize extracting the first image in the article content as a thumbnail, which is an intelligent processing method that can make the most of the internal resources of the article.

Other thumbnail-related features

In addition to the default thumbnail, AnQiCMS also provides other practical thumbnail processing features to help you better manage website images:

  • Thumbnail processing method:You can choose different thumbnail generation methods in the content settings, such as 'Scale proportionally to the longest side', 'Fill to the longest side', or 'Crop to the shortest side'.These options can meet the needs of different template layouts and visual styles, allowing thumbnails to present perfectly in various scenarios.
  • Thumbnail size:Based on your website template design, you can set a uniform thumbnail size. This helps maintain a tidy display of images and avoids visual confusion caused by uneven sizes.
  • Batch regenerate thumbnails:If you modify the thumbnail size or processing method, or want to convert the uploaded images to WebP format to optimize loading speed (WebP image format feature needs to be enabled), AnQiCMS provides the "Batch Regenerate Thumbnails" feature.This feature allows all your article thumbnails to be processed according to the new settings, ensuring that the website images maintain the **status**.

How to call the thumbnail in the template

In AnQiCMS template design, calling the article thumbnail is usually very simple.No matter whether you are on the article list page or the article detail page, you can obtain the thumbnail address through a specific variable.For example, inarchiveListorarchiveDetailCan be used directly in the tag loop or detail{{item.Thumb}}(List page) or{{archive.Thumb}}(Detail page) to get the thumbnail address of the article.

When the article itself does not upload a specific thumbnail, the system will intelligently judge: if the article content contains images, the first image will be automatically extracted as a thumbnail;If the article content does not have any images, then AnQiCMS will display the default thumbnail you have configured in the content settings.This mechanism ensures the "safety net" effect of content display, avoiding the embarrassment of missing images.

By using AnQiCMS's flexible default thumbnail settings, you can easily achieve visual consistency of website content, enhance user experience, and simplify daily content operation work.


Frequently Asked Questions (FAQ)

Q1: I have set the default thumbnail, why are some articles still not displaying the default image but showing other images instead?

A1:AnQiCMS has a priority logic when processing article thumbnails.If you insert an image in the article content editor, even if you have not uploaded a "document image" as a thumbnail separately, AnQiCMS will intelligently extract the first image in the article content as the thumbnail for that article.Only when the article does not have a separate uploaded thumbnail and does not contain any images in the content, the system will enable the default thumbnail you have configured in the "Content Settings".

Q2: Why do the thumbnails of previous articles on the website not change even though I have modified the size or processing method of the default thumbnail?

A2:After you adjust the thumbnail size or processing method in the "Content Settings", these new settings will not immediately affect the thumbnails already generated.In order to apply the new settings to all thumbnails of the published articles, you need to use the 'Batch regenerate thumbnails' feature on the 'Content Settings' page.Clicking this feature will cause the system to reprocess all article thumbnails according to the latest settings.

Q3: Do the default thumbnails support WebP format? Will the images I upload be automatically converted to WebP?

A3:Yes, AnQiCMS supports WebP image format.If you enable the 'Whether to start Webp image format' feature in the 'Content Settings', then all the images uploaded after that (including default thumbnails) will be automatically converted to WebP format to optimize image size and loading speed.If the previously uploaded image is not in WebP format, you can also convert them to WebP format by using the 'Batch regenerate thumbnails' feature.

Related articles

How to configure and display structured data (Json-LD) in AnQiCMS to enhance search engine understanding?

In today's digital world, search engines are the main way users discover website content.In order to help search engines better "understand" the content on our website, structured data plays a crucial role.Json-LD (JSON for Linking Data) is a lightweight, easy-to-implement standardized data format that can clearly describe web content in a structured way, thereby enhancing the visibility and display effects of websites in search results.AnQiCMS as a content management system focusing on SEO optimization

2025-11-08

How to set up a canonical link (CanonicalUrl) in article content and ensure it displays correctly on the page?

In website operation, we often encounter situations where content is similar or repetitive, which may not only scatter the search engine's crawling budget, but also dilute the page weight, affecting SEO performance.Fortunately, AnQi CMS provides us with the function to set canonical links (Canonical URL), which can effectively help us solve these problems and clearly inform search engines which page is the 'original' or 'preferred' version of the content.The value of understanding the significance of canonical URL in simple terms

2025-11-08

How to traverse an array and control display style with loop tags (for) in AnQiCMS templates?

During website operation, we often need to display various list data, such as article lists, product lists, image galleries, or navigation menus.AnQiCMS (AnQiCMS) provides a powerful mechanism based on the Go language template engine, where the `for` loop tag is the core tool to meet this requirement.By flexibly using the `for` tag and its auxiliary functions, we can easily traverse array or list data and accurately control the display style of each element according to actual needs.

2025-11-08

How to call data from other sites in a multi-site environment using the siteId parameter?

In the multi-site environment of AnQiCMS, data intercommunication is a key factor in improving operational efficiency and achieving content integration.Sometimes, we may need to display the content of a sub-site on the main site, or call the contact information of another brand site in a business site.At this time, the `siteId` parameter provided by AnQiCMS is particularly important, as it helps us easily implement cross-site data calls and display.### Understanding the multi-site advantages of AnQiCMS AnQiCMS was initially designed with the need for multi-site management in mind

2025-11-08

How to automatically convert newline characters in multi-line text in AnQiCMS templates to the HTML `<br/>` tag?

In AnQiCMS template, how to make the newline character of multiline text automatically display as the HTML `<br/>` tag?In website content operation, we often encounter situations where we need to display multi-line text, such as article summaries, product descriptions, or user comments.This text content is usually created by pressing the Enter key when editing in the background.However, when this text containing newline characters (usually `\n`) is directly output to an HTML page, the browser will not parse it as a visual line break.On the contrary, HTML

2025-11-08

How to configure custom parameters in the background of AnQiCMS and flexibly call and display them in the front-end template?

In website operation, we often encounter the need to add personalized information outside of standard fields for content or the global website.This information may be a description of the unique features of a website, product parameters, specific attributes of an article, or even multi-channel contact information.AnQiCMS (AnQiCMS) fully understands the importance of this flexibility, and therefore provides powerful custom parameter configuration features, allowing you to easily define the required data in the background and flexibly call and display it in the front-end template.

2025-11-08

How to customize the display fields of an Anqi CMS content model to meet specific business requirements?

In website operation, the diversity and personalization of content are the key to attracting users and improving efficiency.AnQiCMS (AnQiCMS) understands this and therefore provides powerful content model customization features, allowing us to flexibly adjust the display fields of content according to specific business needs.This article will take you in-depth to understand how to use this powerful feature to create a content management experience that is more tailored to your business scenario.Why do we need to customize content model fields?You may encounter such a situation: The default "article" or "product" model is general, but in actual operation

2025-11-08

How to implement personalized front-end display for different types of content (articles, products, single pages) in AnQi CMS?

In AnQi CMS, achieving personalized front-end display of different types of content (such as articles, products, and single pages) is one of its core advantages, and it is also a key factor for content operators to achieve brand differentiation and improve user experience.This is mainly due to the flexible content model design and powerful template customization capabilities of Anqi CMS. ### Flexible Content Model: The Foundation of Personalized Display The core of Anqi CMS lies in its "flexible content model".This means you are not limited to fixed "article" or "product" types, but can customize various content models according to your actual business needs. For example

2025-11-08