How to customize the website navigation menu (multi-level navigation) in AnQiCMS?

Calendar 👁️ 59

As an experienced AnQiCMS website operator, I know that a clear and efficient navigation menu is crucial for the website's user experience and search engine optimization (SEO).AnQiCMS with its exceptional flexibility and customizability, provides us with powerful tools for building and managing multi-level navigation.This article will elaborate on how to customize and implement a multi-level navigation menu in AnQiCMS.

Understand the navigation system architecture of AnQiCMS

The navigation system design of AnQiCMS adheres to its core concepts of efficiency and ease of use.It clearly separates the configuration of the navigation menu from the rendering logic of the front-end template, giving website operators great control.In AnQiCMS, you can easily define the navigation structure through the backend interface, including up to two levels of menu hierarchy, and front-end developers can use intuitive template tags to render the content configured in the backend to any location on the website.This separation design not only simplifies the management process, but also ensures that the website can maintain excellent performance when facing high concurrency access.

Configure multi-level navigation menu in the background

In the AnQiCMS backend management system, the configuration of the navigation menu is concentrated in the "Navigation Settings" module under "Backend Settings". This is the core area for implementing multi-level navigation.

First, you need to access the AnQiCMS backend management interface, then navigate to the "Backend Settings" tab, click on "Navigation Settings" to enter the navigation management page.

Navigation Category Management

AnQiCMS allows you to create multiple independent navigation categories, such as "main navigation", "footer navigation", or "sidebar navigation".By default, the system will provide a "default navigation" category.If your website needs to display different menu structures in different regions, you can create new navigation groups by clicking on 'Navigation Category Management' and then 'Add New Navigation Category'.For example, you can create a category named "Footer Navigation" to manage links at the bottom of the website.This classification management mechanism makes the website's navigation structure clearer and easier to maintain.

Navigation link settings

Configure specific navigation links is the key step to build multi-level navigation. After clicking on any navigation category (such as "default navigation"), you can start adding or editing navigation links.

  1. Add a top-level navigation:When you need to create a top-level menu item, select 'Top-level navigation' in the 'Parent navigation' dropdown. Next, you need to fill in the following information:

    • Display name:This is the text displayed on the front page navigation link, for example 'Products & Services'.
    • Subtitle name (optional):If you wish to display the subtitle or English title of navigation at the same time, you can fill it here.
    • Navigation description (optional):Used to add additional description text to navigation links, which may be displayed when hovered over.
    • Link Type:AnQiCMS offers three flexible link types:
      • Built-in links:Contains the homepage of the website, the article model homepage, the product model homepage, and other custom model homepages. This ensures seamless integration with the core content of the website.
      • Category page links:Allow you to directly link to existing categories on the website (such as "Company News") or single pages (such as "About Us"). This method is especially suitable for integrating important content directly into the navigation.
      • External links:Provided the greatest flexibility, you can enter any internal or external URL address, such as pointing to a social media homepage or a partner website.
    • Display order:By entering a number to determine the sorting of navigation items. The smaller the number, the earlier the navigation item is displayed. Currently, AnQiCMS uses numerical sorting and does not support drag-and-drop sorting functionality.
  2. Add a second-level navigation (implement multi-level navigation):To create a multi-level navigation, for example, to set a dropdown menu under a first-level menu item, you just need to select the corresponding first-level navigation item in the 'Parent Navigation' dropdown box.For example, if you want to add "Product A" and "Product B" under "Products and Services", you would select "Products and Services" as the "parent navigation" for "Product A" and "Product B".Then, fill in the information such as 'Display Name', 'Link Type', etc. like configuring the first-level navigation.AnQiCMS currently supports navigation links up to two levels, which is sufficient for most corporate websites to build a clear navigation structure.

Render multi-level navigation in the front-end template

After the background configuration is completed, the next step is to call and render these navigation menus in the website's front-end template. AnQiCMSnavListTemplate tags provide a convenient implementation method.

navListThe core usage of tags

navListThe tag is the main tool you use to render the navigation menu in the AnQiCMS template. Its basic structure is as follows:

{% navList navs %}
    {# 在这里循环输出导航项 #}
{% endnavList %}

here,navsIt is the variable name you define for the navigation list, and you can change it as needed.

`

Related articles

How to automatically compress large images in AnQiCMS and set thumbnail processing methods?

As an experienced website operator who is well-versed in the operation of AnQiCMS, I fully understand that in daily content management, image optimization is a key link to improve website performance and user experience.Especially for websites that contain a large number of images, properly handling the compression of large images and the generation of thumbnails can not only effectively save server storage space and bandwidth, but also significantly accelerate page loading speed, thereby improving SEO performance and retaining visitors.AnQiCMS provides powerful and flexible built-in features for image processing, allowing us to easily achieve these goals.

2025-11-06

How to use the image processing and external link filtering features in AnQiCMS content settings?

As an experienced AnQiCMS website operator, I fully understand the core status of content settings in the daily operation of the website.Images are an important component of content, and their handling directly affects the loading speed and user experience of the website; while the management of external links concerns the SEO health and content credibility of the website.In AnQiCMS, these key features can be fine-tuned in the content settings to meet different operational strategy needs.

2025-11-06

How to set up and manage the contact information on AnQiCMS backend?

As a senior CMS website operation personnel of a well-known security company, I am well aware of the importance of website contact information for user trust, business communication, and brand image.Clear, accurate and easy-to-find contact information not only enhances user experience, but is also a key link in converting potential customers.I will elaborate in detail on how to set up and manage contact information in the AnQiCMS backend, and guide you on how to display this information on the website frontend.

2025-11-06

How to configure AnQiCMS to push links to Baidu, Bing, and other search engines主动推送?

AnQiCMS as a system focusing on enterprise content management and SEO optimization, deeply understands the importance of content visibility in search engines.As a website operator familiar with AnQiCMS, I will thoroughly explain to you how to take advantage of the built-in functions of AnQiCMS to efficiently configure the active push of links to Baidu, Bing and other search engines to ensure that your content can be quickly discovered and indexed by search engines.### The importance and feature entry of search engine active push In the digital era, the rapid inclusion of content is crucial for the SEO performance of a website

2025-11-06

Where is the global function setting (website name, logo, filing number) of AnQiCMS modified?

As an experienced website operator who deeply understands the operation of AnQiCMS, I know that content creation, publication, and optimization are the key to the success of the website, but all this is based on the correct and reasonable configuration of the website's core settings.The name of a website, its brand logo, and compliance information (record number) are the most direct impression of the website when a user first contacts it, and they are also the foundation for building trust and a professional image.Many operators will encounter the problem of how to modify these global feature settings in the early stage.Today, I will give you a detailed explanation of AnQiCMS

2025-11-06

How to optimize the TDK (Title, Description, Keywords) of AnQiCMS website homepage?

As a website operator who deeply understands the operation of AnQiCMS, I know that the home page TDK (Title, Description, Keywords) plays a foundational role in the website's SEO strategy.A meticulously optimized homepage TDK can clearly convey the core value of the website to search engines and also attract users' attention in search results, thereby improving click-through rates.AnQiCMS is a system that focuses on providing an efficient, customizable, and easily scalable content management solution and is inherently SEO-friendly

2025-11-06

How to create and manage content models in AnQiCMS and

As an experienced security CMS website operations personnel, I am well aware of the importance of flexible content management for the successful operation of a website.AnQi CMS with its powerful content model function provides a solid foundation for us to meet diverse content needs.Next, I will elaborate on how to create and manage content models in AnQiCMS, so that you can efficiently build and publish various types of content. ### Understanding the Content Model in AnQi CMS In AnQi CMS, the content model is the core for defining the structure of specific types of content.

2025-11-06

What is the Vim/Vi operation referred to by "ws save and exit" in the `crontab -e` command?

## Parsing the "ws save and exit" operation in the `crontab -e` command When deploying and maintaining AnQi CMS, the `crontab -e` command is a common command used to edit system scheduled tasks to ensure the continuous operation of the website service and the automation of maintenance tasks.In the AnQiCMS deployment document, we noticed that when editing the `crontab` task, the prompt information appeared with the text "# ws save and exit".This may confuse some users who are new to or not familiar with Vim/Vi editors

2025-11-06