How to present content in a list page in an attractive way while not requiring a lot of manual work in website operation?This is often a headache for operators. AnQiCMS understands this pain point and provides us with a set of effective solutions through its powerful automation features, especially excelling in the automatic generation and application of document descriptions and thumbnails.
Intelligently extract document summaries, goodbye to manual writing
Imagine, after each article is published, you need to manually write a concise summary, what a time-consuming task this is.AnQiCMS cleverly solved this problem. When you add or edit a document, if the 'Document Summary' field is left blank, the system will not allow it to be empty.On the contrary, it will intelligently grab about 150 characters from the beginning of the document content as the default introduction of the article.This means that even if you forget to fill in or are in a hurry, your article can still have a concise and clear text summary on the list page, helping readers quickly understand the main points of the article and enhance the willingness to click.
Of course, AnQiCMS also provides full flexibility.If you are not satisfied with the automatically generated summary or want to have more precise control over the presentation of content, full support is provided for manual input and editing.The manually entered summary will be displayed first, ensuring you have the final say in content presentation.When displaying on the list page, we only need to use the corresponding description field (such asitem.Description),These introductions can naturally appear in front of readers.
Automatically generate thumbnails to enhance visual appeal
In addition to the text introduction, a well-chosen thumbnail can undoubtedly enhance the visual appeal of the list page.AnQiCMS in this regard also demonstrates its intelligent side.When we publish an article containing images without manually uploading a thumbnail, the system will automatically identify and extract the first image from the article content, using it as the default document thumbnail.This feature was introduced in AnQiCMS V1.0.0-alpha and has been continuously improved.This mechanism ensures that every article on the list page has a visual element, even if it is a new post that has not been processed in time, it can still be displayed well, keeping your website professional and beautiful.
AnQiCMS offers a wide range of custom options for thumbnail processing to meet the design needs of different websites.In the background "Content Settings", we can flexibly adjust the thumbnail size.Further, you can also choose different ways of handling, such as:
- Scale proportionally to the longest side: The image will be displayed in full, but will be proportionally scaled according to the longest side.
- Trim according to the shortest edgeThe image will be cropped in the center, ensuring that the shortest side is fully displayed, and part of the longest side may be cropped off.
- Fill the longest sideThe image is displayed in a fixed aspect ratio, and the insufficient part is filled with white.
These settings allow thumbnails to maintain visual consistency while also adapting to a diverse layout.If the article indeed does not contain any images, or you wish to have a unified visual style, AnQiCMS also allows you to set a default thumbnail as a fallback solution to ensure the neatness and consistency of the list page.If the style or size of the thumbnail has been adjusted later, AnQiCMS also supports batch regeneration of thumbnails, saving the trouble of a lot of manual operations.
When called in the template, we can useitem.Thumbto display the thumbnail processed by the system, oritem.LogoShow the cover main image (usually the main image you have specifically set), depending on which visual presentation of the list you prefer.
Smooth display on the list page
Whether it is an article, product or single page, AnQiCMS' document list tag (such asarchiveList), category list tag (categoryList) and single page list tag (pageListThese can all well support the display of automatically extracted and generated summaries and thumbnails.
When building a list template, we only need to iterate through (for example){% for item in archives %}and call them separately.{{item.Description}}Show the article summary as well{{item.Thumb}}or{{item.Logo}}Display thumbnails. The system will automatically fill in these contents based on actual conditions, making the information on the list page rich and beautiful.This integrated design greatly simplifies the workflow of content operators, allowing website content to be displayed quickly and standardizedly to users after publication.These automated features not only improve the efficiency of content publishing, but also optimize the website's user experience and search engine performance unintentionally.A well-structured introduction and appropriate thumbnails can attract more clicks, while standardized content presentation helps enhance the professional image of the website.By flexibly using the various settings of AnQiCMS, we can find a **balance point between automation and personalization, making the website's content operation both efficient and distinctive.
Frequently Asked Questions (FAQ)
1. Why doesn't my article show a thumbnail I uploaded manually, and there are no images displayed on the AnQiCMS list page?This is usually because there are no images included in your article content, or even if there are images, they may be referenced through external links, and you have turned off the option 'Download remote images' in the 'Content Settings'.AnQiCMS defaults to extracting the first local image from the article content as a thumbnail.If the article has no image and no default thumbnail is set, the list page will naturally not display the image.You can upload a 'default thumbnail' in the 'Content Settings' as a backup for all articles without images.
2. Can the automatically extracted introduction text be adjusted if it is too short or too long?AnQiCMS currently automatically extracts the number of characters in the introduction as the first 150 characters of the document content.If you need a longer or shorter summary, the only way is to manually enter the content you want to display in the 'Document Summary' field on the document editing page.The manually entered description will override the automatically extracted description.
3. Can AnQiCMS force the thumbnails on the list page to display in a fixed aspect ratio?Yes, AnQiCMS provides various thumbnail processing methods to meet your needs.In the "Content Settings" on the backend, you can set the "Thumbnail Size" to a specific width and height (e.g., 200x150 pixels), and then select the "Thumbnail Processing Method" to either 'Crop to Shortest Side' or 'Pad to Longest Side'.These two methods can both help you achieve a fixed aspect ratio for thumbnails, the difference being that cropping will lose some of the image edges, while padding will add blank areas around the image.You can choose the most suitable way based on the actual design effect.