How does AnQiCMS manage image resources and display them by category for easy front-end calling?

Calendar 👁️ 86

In website content operation, images are indispensable elements that attract users and convey information.Effectively manage these image resources and be able to flexibly call them on the front-end page, which is crucial for enhancing the user experience and operational efficiency of the website.AnQiCMS provides a comprehensive and flexible solution in this regard, making the management and calling of image resources simple and orderly.

Unified management and categorization of image resources

AnQiCMS provides a centralized management platform for website image resources, where you can easily upload, store, and organize all visual content.In the background management interface, by accessing the "Page Resources" menu under the "Image Resource Management" entry, you will find an intuitive image library.

This image library not only displays all uploaded images and video resources, but also provides powerful classification features.You can create various custom categories based on actual operational needs, such as "product display images", "news illustrations", "special theme banners", "team photos", and so on.After creating a category, you can directly assign the newly uploaded images to the corresponding category, and you can also adjust the classification of existing images on the image detail page.Moreover, AnQiCMS also supports batch operations, allowing you to select multiple images at once for batch deletion, or to move them in batches to specific categories, which greatly improves management efficiency.

On the image detail page, you can view all the detailed information of the image, including the filename, file type, upload time, file size, resolution, and the most critical image address (URL).It is worth mentioning that when you need to update an image, AnQiCMS allows you to perform a 'image replacement' operation.This feature is very practical because it keeps the original image URL unchanged after replacing the image, which means you do not need to modify all the code on the front-end page that refers to this image. Just update the image content in the background, and the front-end page will automatically display the new image. This effectively avoids link failure or front-end changes due to image updates.

Front page call: multiple scenarios and flexible display

The purpose of picture resource management is to facilitate the call and display of the front-end page.AnQiCMS provides various ways for you to flexibly display images on your website according to different scenarios.

Image call in document/article

When editing articles, product details, news and other content, the built-in rich text editor allows you to directly select and insert images from the image library. In addition to the images in the main content of the document, AnQiCMS also sets a special image field for the document:

  • Cover main image (Logo) and thumbnail (Thumb)On the document editing page, you can specify a cover image and a thumbnail for each document. These images are often used for visual presentation on list pages, such as in article lists or product lists, by means of{{item.Logo}}or{{item.Thumb}}This template tag can be easily called, providing users with an overview of the content.
  • Group Image (Images)If a document needs to display multiple images, such as product details from different angles, event highlights, or a set of travel photos, AnQiCMS supports the "Group Image Display" feature. You can upload multiple images while editing the document and proceed through{% for item in archiveImages %}<img src="{{item}}" />{% endfor %}Such a loop tag, it can be used to implement a carousel or gallery effect on the front-end page.
  • Image in a custom fieldThe content model of AnQiCMS is highly flexible.You can add custom image fields for specific content models (such as "real estate model" or "car model"), such as floor plans, interior images, and so on.In this way, you can provide structured management and invocation methods for images according to the unique needs of the content type.

Image call in category and single page

The category pages of the website (such as product category pages, news category pages) and single pages (such as "About Us", "Contact Us") also support rich image display. You can upload or select images on the editing interface of these pages.Banner image (Images)andThumbnail (Thumb)For example, by{% categoryDetail with name="Images" %}you can get the Banner image group of the category, used for the visual decoration at the top of the page, or by{% pageDetail with name="Thumb" %}Get a thumbnail of the single page for easy reference in navigation or other blocks.

Advanced usage of template tags and filters.

AnQiCMS's template system provides powerful flexibility for image calls. You can accessarchiveDetail/categoryDetail/pageDetailDetails label, accurately obtain the image field of a specific document, category, or single page by ID or URL alias, such as{% archiveDetail with name="Logo" id="1" %}.

In the list loop, such asarchiveListYou can also directly access through the loop variable (item) access{{item.Logo}}/{{item.Thumb}}and `{{item.Images

Related articles

How to display the thumbnail of each article in the article list?

In content operation, the thumbnail of the article list page plays a crucial role.They can quickly attract visitors' attention, increase click-through rate, and make the page content clear at a glance, greatly improving the user experience.AnQiCMS (AnQiCMS) is a comprehensive content management system that provides a very flexible and easy-to-operate way to display thumbnails of each article in the article list.Next, let's discuss in detail how to implement this function.Why are thumbnails so important? Imagine you are browsing a news website

2025-11-08

How to set up a custom template for a single page and display independent content in AnQiCMS?

In website operations, we often encounter pages that require unique design and layout, which do not follow a unified template like ordinary articles or product detail pages, such as a meticulously designed "About Us" page, a timeline showcasing the company's vision, or a landing page for a specific marketing activity.These single pages carry the brand image and special functions, therefore, setting a custom template and displaying independent content is the key to improving user experience and meeting business needs.

2025-11-08

How to configure and display the contact information of the website (such as phone, email, WeChat) in AnQiCMS?

The contact information of the website is the key bridge to establish trust, provide support, and promote communication with users.Whether it is to provide consultation, solve problems, or promote cooperation, clear and easy-to-find contact information can greatly enhance the user experience and the professionalism of the website.In AnQiCMS, configuring and displaying this information is an intuitive and flexible operation. ### Configure your website contact information You can easily manage the contact information of the AnQiCMS website through the backend.First, log in to your AnQiCMS backend management interface.In the left navigation bar

2025-11-08

How to set and display the website logo image for AnQiCMS?

On a website built with AnQiCMS, the logo image is a core element of brand recognition, which can not only enhance the professionalism of the website, but also deepen visitors' impression of the brand.AnQiCMS provides a simple and intuitive way to set and display your website logo. ### Set Website Logo: Let the brand identity入驻 AnQiCMS Firstly, to make your website have a unique identifier, the first step is to upload the Logo image to the AnQiCMS backend.This process is very direct: 1.

2025-11-08

How to retrieve and display custom parameters of an article on the article detail page (such as author, source)?

Manage and display content in Anqi CMS, the article detail page is undoubtedly the core position for users to obtain information.In addition to basic elements such as article titles and text, we often need to display some personalized information on the detail page, such as the author of the article, source of content, product specifications, and release location, etc.This information is called "Custom Parameters" in Anqi CMS, which can greatly enrich the dimensions of content and meet the personalized needs of different business scenarios.The AnQi CMS provides a very flexible way to define and display these custom parameters, allowing website operators to meet their actual needs

2025-11-08

How does AnQiCMS automatically extract the first image of the article content as a thumbnail?

In content operation, matching a suitable thumbnail for each article can not only enhance the visual appeal of the website, but also quickly attract users' attention in the information stream.However, manually uploading and adjusting thumbnails for each article, especially when the volume of content is large, is undoubtedly a time-consuming and labor-intensive task.AnQi CMS knows this pain point and provides an intelligent and efficient thumbnail automatic extraction mechanism, making content publishing more hassle-free.

2025-11-08

How to use a filter in AnQiCMS template to convert a timestamp to a readable date format?

In website operation, we often need to display various time information on the front-end page, such as the publication date of articles, content update time, or user comment time.AnQiCMS as an enterprise-level content management system usually adopts the efficient and concise format of Unix timestamps for data storage.However, for users visiting the website, a string of numeric timestamps is obviously not intuitive and friendly.How can I convert these timestamps into a readable date format in AnQiCMS templates?AnQiCMS provides a very practical built-in tag and filter

2025-11-08

How to implement the filtering function of the article list in AnQiCMS, displaying different results according to custom parameters?

How to make it easier for users to find the content they need on the website is the key to improving user experience and conversion rates.The filtering function of the article list is an important means to achieve this goal.AnQiCMS provides a flexible and powerful mechanism that allows us to easily filter and display different list results of articles based on custom parameters, which is very helpful for building personalized and efficient content platforms.### The Foundation of Building a Filtering Function: Custom Content Model To implement an article list filter based on custom parameters

2025-11-08