As a senior CMS website operation personnel, I am well aware of the key role of website navigation in improving user experience and content presentation.An efficient and flexible navigation system not only helps users find the information they need quickly, but is also an important part of optimizing the website's information architecture.In AnQi CMS, regarding the support for custom navigation categories, especially for sidebar navigation needs, I can clearly tell you that the system provides powerful and flexible functions to meet these customization requirements.
One of AnQi CMS's design philosophies is to provide an efficient, customizable, and scalable content management solution, one of its core advantages being the flexibility of content display and management requirements.This naturally extends to the configuration of website navigation. The system not only supports mainstream top navigation but also allows operators to flexibly create and manage various custom navigation categories based on the specific layout and content strategy of the website, including common sidebar navigation.
In the AnQi CMS backend management interface, you will find a feature module named "Website Navigation Settings".This module is the core of custom navigation. Here, the system provides the 'Navigation Category Management' function, allowing you to break through the limitations of traditional top navigation and create an unlimited number of navigation categories.This means that, in addition to the default top navigation, you can easily add a category named 'Sidebar Navigation', or 'Footer Navigation', 'Special Topic Navigation', etc., depending entirely on your design requirements.
After creating a custom navigation category, the next step is to add specific navigation links to these categories.In the 'Navigation Link Settings', you can fill in links for each custom category.The Anqi CMS supports multiple link types, including "internal links" pointing to content within the site (such as the homepage, article model homepage, product model homepage, etc.), "category page links" pointing to specific content categories or single pages, as well as highly flexible "external links" that can point to any URL within the site or external resources.Each navigation link can be set to display a name, subtitle, description, and supports a hierarchical relationship of secondary navigation, which is particularly useful for building a clear sidebar menu structure.
Implementing these custom navigation displays on the front page depends on the powerful template engine of Anqi CMS. The system uses syntax similar to the Django template engine, allowing developers and operators to use template tags (especiallynavListLabel) to call and render this navigation data. After you create a category named "Sidebar Navigation" in the background, in the frontend template file, you can specifytypeIdParameters are used to call corresponding navigation data. For example, through{% navList navs with typeId="您侧边栏导航类别的ID" %}With such a label, the system can accurately retrieve the link list you defined for the sidebar and display it in the template in a loop.
In order to better manage template files, AnQi CMS also follows a series of template production conventions. For example, common code snippets, such as sidebars, breadcrumbs, and so on, are usually recommended to be stored inpartial/Under the directory. This means you can create a file namedpartial/sidebar_nav.htmlthat contains the use ofnavListThe code logic for rendering the sidebar navigation tag, then simply use it in the page template where the sidebar needs to be displayed{% include "partial/sidebar_nav.html" %}It can be introduced, which greatly improves the maintainability and reusability of the template.
In summary, Anqi CMS provides complete support for navigation customization from backend management to frontend rendering.Whether it is to create diverse navigation categories to adapt to different regional layouts (such as sidebars) or to precisely control the presentation of navigation content through flexible template tags, Anqi CMS can provide solid technical support to help website operators build beautiful and efficient user interfaces.
Frequently Asked Questions (FAQ)
Q1: How many types of custom navigation categories can I create, such as sidebar, footer navigation, etc?The Anqi CMS has no limit on the number of navigation categories.You can create as many custom navigation categories as needed based on the design requirements of the website, such as main navigation, sidebar navigation, footer navigation, and友情链接 navigation, etc., each category can independently manage its internal links.
Q2: Does the sidebar navigation support multi-level menus, such as having secondary categories under primary categories?Yes, the navigation link setting of Anqi CMS supports up to two levels of menus. You can set a link as a sub-link of another link in the background, so that it can be displayed in the frontend template bynavListWhen the tag is called, it can easily render a sidebar menu containing first and second level layers. More complex nesting can be achieved through templates.categoryListThe tag can further implement this.
Q3: Can I set different navigation content for each sidebar area on my website?Of course, you just need to create multiple navigation categories (such as "Left Sidebar Navigation" and "Right Sidebar Navigation") in the "Navigation Category Management" section in the backend, and add different navigation links to them.Then in your frontend template file, use according to the layout of each sidebar area,navListLabel and pass throughtypeIdSpecify the parameter to call the corresponding navigation category.