How to set a thumbnail for an article and control its display size and method on different list pages or detail pages?

Calendar 👁️ 73

In website content operation, the article thumbnail plays a vital role.It is not only the 'face' of the article content, attracting visitors to click, but also effectively improves the overall beauty and user experience of the page.AnQiCMS provides a complete and flexible set of features that help us easily set thumbnails for articles and finely control their display size and method according to different scenarios.

1. Set the thumbnail for the article

Adding a thumbnail to an article is an important step in the content publishing process.In the AnQiCMS backend, when you enter the 'Content Management' under the 'Publish Document' interface, you can find the relevant options.Generally, there is a special 'Document Image' area in the form for editing article content.Here, you can choose to select a suitable image from the uploaded 'image resources' library or directly upload a new image.This way, you can precisely control the visual presentation of each article, ensuring it attracts the target audience to the fullest.

It is worth mentioning that AnQiCMS also has an intelligent processing mechanism.Even if you do not manually upload or select a thumbnail when publishing an article, as long as the article content contains images, the system will automatically extract the first image in the article as the thumbnail.This feature is especially useful for quickly publishing content, greatly reducing the workload of content editors.Of course, for important articles, we still recommend manually uploading selected thumbnails and accompanying meaningful image ALT tags to ensure their visual appeal and optimize search engine crawling.

Fine-tuning thumbnail display

How to set up thumbnails and display them in different areas of the website (such as article list pages, detail pages, recommendation positions, etc.), AnQiCMS also provides powerful control capabilities.This is mainly reflected in the global settings of the background and the flexible invocation of the front-end template.

First, in the "Content Settings" on the back end, you can find the global configuration options for thumbnails. Here you can统一 manage the size and cropping methods of all article thumbnails:

  • Thumbnail size:You can set a uniform thumbnail width and height according to the needs of the website front-end design, for example, you can set it to 200x150 pixels.Setting the size appropriately can effectively reduce the file size of images, thereby speeding up page loading and improving the user browsing experience.
  • Thumbnail processing method:AnQiCMS provides three mainstream processing methods to meet different visual needs:
    • Scale proportionally to the longest side:This method will display all the content of the image and, according to the set size, will proportionally scale the longest side (width or height) of the image, and the other side will adapt automatically.This is suitable for scenarios where it is desired to fully display the image content but not strictly consistent with the size.
    • Pad to the longest edge:If you want all thumbnails to maintain strictly consistent dimensions (such as uniform image height on the list page), but do not want to crop the image content, you can choose this method.The image will be centered, and any parts that are too small will be filled with white or other background colors to reach the specified size.
    • Trim to the shortest edge:This method crops the image based on the center, ensuring that the shortest edge is fully displayed, while the longest edge may be cropped to perfectly fill the preset size.This is suitable for scenarios where the focus is on the content of the image and there is a high requirement for consistency in size, such as product lists.
  • Default thumbnail: To avoid some

Related articles

How does AnQiCMS handle the SEO title, standard link, and permanent link of articles, affecting their display in search engines?

In website operation, Search Engine Optimization (SEO) has always been a key link in obtaining natural traffic.How a content management system (CMS) effectively handles the SEO title, link structure, and URL normalization directly determines the visibility and performance of your content in search engines.AnQiCMS (AnQiCMS) is a system focused on enterprise-level content management, providing flexible and powerful tools in these aspects to help us better optimize website content.### Accurately Control Search Results

2025-11-08

How to add keywords and Tag tags in article content and display them associated in detail pages or list pages?

In Anqi CMS, effectively utilizing keywords (Keywords) and tags (Tags) is the key to optimizing content structure, improving search engine visibility (SEO), and enhancing user experience.They not only help websites to better organize content, but also guide users to discover more related information.Next, we will delve into how to reasonably add these elements to the article content and ensure they can be displayed correctly on the website's detail page or list page.### One, add keywords to the article content Keywords are words that describe the core theme of the article

2025-11-08

How to use the AnQiCMS timing publishing function to control the display time of content and achieve automated operation?

In the daily work of content operation, maintaining the continuous update and scheduled release of website content is a key factor in attracting users and enhancing brand influence.However, manually publishing content is not only time-consuming, but also limited by the time and energy of operation personnel, especially when it is necessary to target global users, cross-time zones, or carry out a series of content promotions, the challenges are even greater.AnQiCMS (AnQi CMS) precisely understands these pain points, cleverly integrates the powerful timing publishing function, helps you achieve automated content operation, and keep your website always vibrant.

2025-11-08

How to call and categorize the recommended attributes (such as headlines, sliders) of AnQiCMS articles on the frontend?

How to make important and excellent content stand out and attract users' attention at the first time is the key to improving user experience and content marketing effectiveness in website operation.AnQiCMS provides a very practical recommendation attribute mechanism, which helps us easily classify and highlight content, such as setting hot articles as 'Headlines' or displaying selected products in the 'Slider' area.

2025-11-08

How does AnQiCMS ensure the correct rendering and display of article content (including Markdown, mathematical formulas, flowcharts) on the front-end?

In today's era of increasingly rich and diverse content creation, we often need to present on websites not only plain text, but also a variety of Markdown documents, complex mathematical formulas, and intuitive flowcharts.As website operators, the most concerning issues for us are whether the input of these contents is convenient, and whether they can be correctly and beautifully rendered and displayed on the front end.AnQiCMS (AnQiCMS) provides a highly efficient and flexible solution in this regard.###

2025-11-08

How to customize SEO title, keywords, description, and URL display on the category page to optimize the performance of the category page?

In website operation, category pages play a vital role, they are not only the key entry points for users to browse content and explore the website structure, but also the core nodes for search engines to understand the website theme and allocate weight.Effectively optimize the SEO performance of the category page, which can significantly improve the overall visibility and user experience of the website.AnQiCMS (AnQiCMS) provides powerful and flexible tools for users, allowing for detailed customization and optimization of SEO titles, keywords, descriptions, and URL structures on category pages.

2025-11-08

How to set up a Banner image and thumbnail for a category page and display it as a carousel or list on the frontend?

In website operation, adding attractive visual elements to category pages, such as banner images and thumbnails, is an important step to improve user experience and website professionalism.AnQiCMS (AnQiCMS) is an efficient and flexible content management system that fully considers these needs, allowing you to easily set up and display these images on category pages.This article will guide you on how to configure Banner images and thumbnails for category pages on the AnQi CMS backend, and share practical methods for displaying them as a carousel or list in the website frontend template.--- ### Step 1

2025-11-08

How AnQiCMS content model custom fields can be flexibly called and displayed in the front-end template?

In AnQiCMS, the custom field of the content model has brought great flexibility to our website content management, allowing us to add unique attributes to content types such as articles, products, and events according to different business needs.But it is not enough to create these fields in the background. How to flexibly present them on the website front-end, so that visitors can see this customized information, is the key to content operation.Next, we will delve into how the AnQiCMS content model custom fields can be flexibly called and displayed in the front-end template, helping you make full use of this powerful feature.###

2025-11-08