How to manage document classification and set its unique template and Banner image?

As an experienced website operations expert, I am more than happy to delve into the powerful functions of AnQiCMS (AnQiCMS) in document classification management, template customization, and Banner image settings.AnQi CMS empowers operators to easily create personalized, high-conversion websites with its efficient and flexible features.We will now discuss how to make full use of these features to enhance your website performance.


Optimize website content presentation: In-depth analysis of Anqi CMS category management, template and Banner settings

In the world of content operation, a well-organized classification structure is the foundation of user experience, while a unique and creative page design is the key to attracting users and enhancing brand image.The AnQi CMS is well-versed in this, providing a highly flexible category management mechanism and allowing you to customize exclusive templates and banner images for each category, making your website stand out in the homogenized competition.

I. Fine-grained management of your document classification

Document classification is the core of organizing website content, not only concerning how users can quickly find the information they need, but also directly affecting the crawling efficiency of search engines and the SEO performance of the website.In AnQi CMS, the document classification management is intuitive and powerful.

Enter the backend, you can find 'Document Category' under the 'Content Management' module.Here, you can create and manage different categories based on content models (such as article models, product models).

FirstlyCategory nameandCategory IntroductionThey are direct information aimed at users, and they are also an important basis for search engines to understand your categorized content. You can set a unique one for each category.SEO titleandKeywordsThis is crucial for improving the search ranking of the category page. Moreover,Custom URLThis feature allows you to摆脱(default) numeric IDs, creating more semantically meaningful and SEO-friendly URL paths for categories, such as setting “/category/1” to “/news/industry-updates”.

It is worth mentioning that each category must be associated with adocument model.This means that a category belonging to the 'Article Model' can only contain content of the article type and cannot mix products or other types of content.This strict model binding ensures the structure and consistency of the content, laying a solid foundation for subsequent template customization.

Secondly, customize exclusive templates for your categories to create a personalized user experience

Imagine your website has multiple content sections such as news, product display, and case sharing. If they all use a uniform layout, it is undoubtedly going to reduce users' interest in exploration.The "Category Template" feature of AnQi CMS is the tool to solve this pain point.

On the page editing category information, you will find a namedCategory TemplateThe option of “”Here, you can specify a completely custom template file for the current category.For example, your news category may require a concise list layout for news, while the product category may need a card layout containing product images, prices, specifications, and other information.

By default, the Anqi CMS will automatically find the form like according to the model of the category you belong to{模型table}/list.htmlThe template file. But by customizing, you can name the template file as you like.download.html/case-study.htmletc. To do this, you just need to make sure that you have created the corresponding one in the template design package..htmlfile, and fill in its name accurately in the category settings. The template engine of Anqi CMS supports Django template syntax, which means you can use{% categoryDetail %}Label easily retrieves various information of the current category, such as title, description, and even the Banner image mentioned later, thus achieving a highly dynamic content display.

In addition, the Anqi CMS also provides a "Whether to apply to subcategoriesThe option of “”.If you want all subcategories under a certain main category to follow the same template design, checking this option will enable quick inheritance, greatly simplifying the template setup workload.A separate "document template" is specified for the documentEnsure that the content detail page also maintains consistency with the category style or has a unique display method.

Three, set a unique and skillful banner image for the category page.

The banner image is the 'face' of the website, attracting the user's attention at first glance, conveying brand information, and guiding users to focus on core content.The AnQi CMS allows you to set exclusive Banner images for each category, making your category pages more visually impactful.

In the category editing interface, you will see "Banner imageThe setting item.Here, you can upload one or more images.This means you can set multiple Banner images for the same category, achieving a carousel effect and bringing users a richer visual experience.We usually recommend using images of consistent dimensions when uploading to ensure a unified and beautiful visual effect on the frontend.

It is also very simple to call these Banner images in the template. Through{% categoryDetail %}Tags, you can get all the details of the current category, including a field namedImagesfield. ThisImagesFields is an array, storing the URLs of all Banner images you have uploaded. In your category template, you can call them like this:

{% categoryDetail categoryImages with name="Images" %}
{% if categoryImages %}
<div class="category-banner-carousel">
    {% for item in categoryImages %}
        <img src="{{ item }}" alt="{% categoryDetail with name="Title" %}" />
    {% endfor %}
</div>
{% endif %}

This code will iterate through all uploaded Banner images and display them on the frontend.You can design them according to your actual needs, such as a carousel, fixed background image, or other creative display forms to add more vitality and professionalism to the category page.

Summary


Common Questions (FAQ)

  1. Q: Where should the template file be stored after I set a custom template for a category in AnQi CMS?A: The customized template file should be stored in:/templateIn the folder of the template package you are currently using under the directory. For example, if your template package is nameddefault, you can place it intemplate/default/{模型table}/directory, or according todesign-director.mdThe flattening mode or folder organization mode for naming and storage. For example, the list template for the article model can be namedarticle/special-news.htmlor directlyspecial-news.html, and then fill in the corresponding file name in the category settings.

  2. Q: What formats are supported for the classification banner images? What is the maximum size of the images I can upload?A: The AnQi CMS usually supports common image formats such as JPEG, PNG, and WebP.About the image size, although the system does not have a mandatory limit, it is recommended to choose an appropriate size and perform appropriate compression according to the website design layout to ensure page loading speed and visual effects.For example, you can set the width to 1920px, adjust the height according to design requirements, and keep all Banner image sizes consistent to avoid jumping or misalignment during front-end display.The "Automatic Compression of Large Images" and "Webp Image Format Conversion" features are also provided in the content settings of Anqi CMS, which help optimize image performance.

  3. Q: If I set a 'document template' for a category, will all documents under this category be forced to use this template?A: Yes, if you set a 'Document Template' in the edit page of a category, then all documents published under that category, without specifying a document template separately, will default to using the document template defined at the category level.This provides great convenience for uniformly displaying the style of all documents under a certain category.