In the process of managing content in the Anqi CMS, we often encounter various fields related to images, among whicharchiveDetailunder theLogoandThumbThe field often confuses some new users.They all represent images, but there are very clear and practical differences in their use and system processing.Understanding these differences can help us better plan the image content, improve the loading speed of the website, and enhance the user experience.
Logofield: the face of the content
When we go througharchiveDetailwhen the tag calls the detail data of the documentLogoThe field is usually understood as the 'cover main image' or 'main visual image' of the content.It carries the core visual information of the document or product, and is the image we expect to be most prominent and clear on the page.
In actual application,LogoThe returned field is often the original image you uploaded (or a version compressed by the system's general image compression), which is usually larger in size and retains complete details, suitable for displaying at the top of the article detail page, the large image display area on the product page, or as the main thumbnail when sharing on social media.It aims for visual impact and content representation, which is the first focus for users when browsing content.
For example, if you write an article about a new product, the product image is the core, and you want this image to be presented in a large size and in high definition on the article detail page, then you upload and specify it asLogoThe picture can well meet this need.
Thumbfield: efficient thumbnail preview
WithLogoIn contrast, isThumbfield, as the name suggests, it represents the document's 'thumbnail'.ThumbThe birth of this field is more to meet the needs of image efficiency in scenarios such as content list pages and related recommendation areas.In these scenarios, we need to display multiple images at the same time and hope that the page can load quickly to reduce the user's waiting time.
The Anqi CMS in handlingThumbWhen enabled, provides very fine control. You can uniformly configure the website's thumbnail processing method and size in the 'Content Settings' backend. This means that when you callThumbWhen a field is set, the system will automatically perform scaling, cropping, or padding operations on the original image according to these preset rules, generating a thumbnail version with a smaller size and better file volume.
It is more intelligent, for example, if you are editing a document and have not specifically setThumbUpload an image, but if the document content contains an image, Safe CMS will automatically extract the first image in the content as the source of the thumbnail and generate it according to the preset rules.ThumbThis automated processing greatly reduces the workload of content editing, while ensuring the performance advantage of the website in image loading.
For example, on the article list page, each article needs a cover image to attract user clicks. If you use the large image directly,Logoit may cause the page to load slowly. At this point,ThumbThe field can be put to good use, it provides a standardized, optimized thumbnail that can display an overview of the content while ensuring the smoothness of page loading.
核心区别:为何需要区分?
那么,既然都有图片,为什么安企CMS还要特意区分LogoandThumb呢?核心原因在于它们的用途定位and处理机制Different:
- Purpose positioning:
LogoFocus on content:Main visual presentationandHigh-quality display;ThumbThen more focused onEfficient previewandPage performance optimization. - Processing mechanism:
LogoGenerally maintain the original size and quality of images (or universal compression);ThumbIt will then be based on the definition in the "Content Settings" on the backend.Thumbnail processing rules (size, cropping method, etc.)Perform strict optimization processing. - File size and loading speed:
LogoFiles are usually large, suitable for single display;ThumbThe file is smaller, loads faster, and is suitable for batch display. - Smart Generation:
ThumbAutomatically extracts the first image from the article content when not explicitly uploaded.
Understanding these differences can help us upload and select images more purposefully when publishing content. Set high-resolution beautiful images asLogo,ensure that the **visual experience is obtained during the user's deep reading; while allowing the system to automatically or manually generate optimizedThumb,then it ensures the rapid response of the list page and recommendation position, thus enhancing the overall website user experience and SEO performance.
In the Anqi CMS,LogoandThumbNot unrelated, but working together to build a flexible and efficient image management system. Through reasonable configuration and use, you will be able to fully utilize the value of the website images.
Common Questions (FAQ)
问:If only one image is uploaded,
LogoandThumbwill the same image be displayed?答:Yes, if you only upload one image as the main image when editing the document, or if you do not specifyThumbIndividually specify an image, the CMS will usually intelligently use this main image asLogoat the same time,ThumbThis thumbnail will be generated from this main image based on the thumbnail processing rules you define in the "Content Settings" on the backend (for example, fixed size, cropping method, etc.), ensuring efficient display in scenarios such as list pages.问:Can you adjust the size directly in the template?
LogoorThumbWhat about the size?Answer:ThumbThe size is mainly controlled globally through the "Content Settings" on the backend. Once you set it there, all throughThumbThe images called by the field will be generated according to this rule. If you need to use this rule in the template,Logoor any other image for real-time size adjustment, which can be achieved by combining CSS or JavaScript in the template, or by using the image URL provided by the Safe CMSthumbFilter, dynamically generates thumbnails of different sizes, such as{{ archive.Logo|thumb:"width=100&height=100" }}.Q:
Logofield andImagesWhat are the differences between fields?Answer:LogoGenerally refers toA single, main cover imageis the "representative" of the document or product in visual terms, usually used for large image display.Imagesis used to storea set of imagesFor example, product detail page carousel or the scenario where multiple pictures are needed in an article to enrich the content.ImagesThe field returns an array of image URLs, you need to iterate through them to display all of them, andLogousually returns the URL of a single image.