How to manage document categories and set their unique templates and Banner images?
As an experienced website operation expert, I am more than willing to delve deeply into the powerful functions of AnQiCMS (AnQiCMS) in document classification management, template customization, and Banner image setting.The AnQi CMS, with its efficient and flexible features, empowers operators to easily create personalized, high-conversion websites.Below, we will discuss how to fully utilize 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 clear and logical classification structure is the cornerstone of user experience, and a unique page design is the key to attracting users and enhancing brand image.AnQi CMS deeply understands this, providing a highly flexible classification management mechanism, and allowing you to customize exclusive templates and Banner images for each category, so that your website stands out in the homogenized competition.
I. Manage your document categories with precision
Document classification is the core of organizing website content, it not only concerns how users can quickly find the information they need, but also directly affects the efficiency of search engine crawling and the SEO performance of the website.In AnQi CMS, the management of document categories is intuitive and powerful.
Go to the backend, you can find the "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).When you create a new category or edit an existing one, a series of refined setting options are presented in front of you:
FirstlyCategory NameandCategory introductionThey are direct information for users and an important basis for search engines to understand your classified content. You can set unique attributes for each category.SEO titleandKeywordsThis is crucial for improving the search ranking of the category page. Moreover,Custom URLThe feature allows you to摆脱 the default numeric ID, 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 oneDocument modelThis 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 structurization and consistency of the content, laying a solid foundation for subsequent template customization.
Second, customize a dedicated template for your category to create a personalized user experience
Imagine that your website has multiple content sections such as news information, product display, case sharing, etc. If they all use the same layout, it will undoubtedly reduce users' interest in exploring.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 named "category templateThe option. Here, you can specify a completely custom template file for the current category.For example, your news category may need a concise news list layout, while the product category may need a card layout containing product images, prices, parameters, and other information.
By default, AnQi CMS will automatically find the form like{模型table}/list.htmltemplate file. But by customizing, you can name the template file as you likedownload.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 Anqi CMS template engine supports Django template syntax, which means you can use{% categoryDetail %}The label easily retrieves various information of the current category, such as title, description, and even the Banner image mentioned later, thereby achieving a highly dynamicized content display.
In addition, AnQi CMS also provides “Apply to subcategoryThe option. If you want all subcategories under a certain main category to follow the same template design, check this option to enable quick inheritance, which greatly simplifies the template setup process.At the same time, you can even select all categories under this oneA document template can be specified separately “To ensure that the content detail page also maintains consistency with the category style or has a unique display method.
Chapter three: Set a unique and creative Banner image for the category page
The banner image is the 'face' of the website, it captures the user's attention immediately, conveys brand information, and guides the user to focus on the core content.The Anqi CMS allows you to set a dedicated Banner image for each category, making your category page more visually striking.
In the category editing interface, you will see “Banner imageThe setting item. Here you can upload one or more images.This means that you can set multiple Banner images for the same category, realizing a carousel effect to bring users a richer visual experience.When uploading, we usually recommend that you use images of consistent size to ensure uniform and beautiful visual effects on the front end.
It is also very simple to call these Banner images in the template. By{% categoryDetail %}Label, you can get all the details of the current category, including one namedImagesa field that containsImagesThe field is an array that stores the URLs of all the Banner images you 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 over 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, adding more vitality and professionalism to the category page.
Summary
The AnQi CMS provides website operators with great freedom and creative space through its powerful category management, flexible template customization, and personalized Banner image setting features.In order to optimize SEO, improve user experience, strengthen brand image, or achieve content differentiation, these features can become an important part of your content operation strategy.Master them, your website will no longer be a monotonous pile of information, but a vibrant and personalized content ecosystem.
Frequently Asked Questions (FAQ)
Q: Where should the template file be stored in the AnqiCMS directory after I set a custom template for a category?A: The template file you customized should be stored in
/templateThe folder containing 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.mdFlatting mode or folder organization mode should be used for naming and storage. For example, the list template of the article model can be namedarticle/special-news.htmlor directlyspecial-news.html, and then fill in the corresponding file name in the category settings.Q: What formats are supported for category banner images? What size of images can I upload?A: The Anqi CMS usually supports common image formats such as JPEG, PNG, WebP, etc.Regarding image size, although the system does not impose any mandatory restrictions, it is recommended to choose the appropriate size and compress it appropriately 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 the dimensions of all Banner images consistent to avoid jumping or misalignment during front-end display.The content settings of Anqi CMS also provide the 'Auto-compress large images' and 'Webp image format conversion' features, which help optimize image performance.
Q: If I set a "document template" for a category, will all documents under that 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 that category level.This provides great convenience for unifying the display style of all documents under a certain category.If a document requires special display effects, you can still specify a document template individually on the document's editing page