Website navigation, just like a map for users to explore your website, a clear and efficient navigation can greatly enhance the user experience, helping visitors quickly find the information they need.In AnQiCMS, the website navigation configuration provides very high flexibility, allowing you to cleverly combine "built-in links", "category page links", and "external links" according to your actual needs, and make refined settings.

A variety of navigation location and hierarchy management

In AnQiCMS, you do not have to be confined to a fixed navigation menu.You can create multiple independent navigation groups through the 'Navigation Category Management' feature, such as the 'Main Navigation' used at the top of the main website, the 'Footer Navigation' for information at the bottom of the page, or the 'Sidebar Navigation' displayed on the side.Each navigation group can have its own independent link list and display logic.

In addition, AnQiCMS supports navigation up to two levels, which means you can set sub-navigation under the main navigation item to form a dropdown menu or multi-level structure, which is very useful for organizing content with deep levels.

Flexible configuration of three link types

AnQiCMS summarizes navigation links into three basic types, each with unique application scenarios, making the guidance of website content more intuitive.

FirstlyBuilt-in linkImagine your website needs a link to the homepage, or directly to a list of all articles and all products.AnQiCMS provides the "Built-in Link" option, allowing you to directly select preset entries such as "Home Link", "Article Model Home", or "Product Model Home".If you create other custom content models, their home pages will also appear as built-in links.The advantage of this link is its stability and convenience, no need to manually input the URL, the system will automatically identify and generate the correct path, greatly reducing the possibility of making mistakes.

Next isCategory page linkWhen your content becomes richer, you need to guide users to specific article categories, product categories, or independent single pages (such as "About Us", "Contact Us", "Service Introduction", etc.), at which point the "category page link" comes into play.When configuring, you can select from the categories or single-page lists that have been created.This means that once your category or single-page URL changes (for example, if you adjust the static rules or change the alias), the links in the navigation will automatically synchronize and update without manual modification, which is very convenient for the long-term maintenance of the website.

Finally isExternal link. 'External links' then gives you a great degree of freedom.No matter whether it is a specific page within the site, such as a customized feature page that does not belong to a category or a single page, or an external cooperative website, social media homepage (such as enterprise microblog, LinkedIn homepage, Facebook homepage), you can easily add it.You only need to manually enter the complete URL address. This type is suitable for scenarios that require high customization or redirection to external resources. It makes your website not only a platform for displaying information but also a bridge to connect to the outside world.

Navigation fine-tuning settings to display as expected

The navigation configuration of AnQiCMS is not just simple link types, but also includes a series of detailed settings that can make your navigation more in line with expectations and provide a better user experience.

  • display nameThis is the text displayed on the navigation menu for users, you can name it freely.Even if it points to the "product model homepage", you can name it "latest product" or "recommended product" to make the navigation text more attractive.
  • Subheading name: If your website needs bilingual display, or you want to add some supplementary notes under the main title, such as the main navigation is 'Products', and the subtitle is 'Products', then the 'Subtitle Name' can come in handy.
  • Navigation description: For some navigation items that require additional hints or SEO considerations, you can use 'navigation description' to add more information. This content may be used during template design as a tooltip when hovering over the mouse, or as auxiliary information for search engines to understand navigation content.
  • Display order: By adjusting the 'display order' number (the smaller the number, the earlier it appears), you can easily arrange the navigation item layout without complex drag-and-drop operations.This is very efficient when adjusting the navigation structure.
  • Highlighting the current page: AnQiCMS template tags (such asnavList) When getting navigation data, it will also have aIsCurrentProperty. When developing templates, you can use this property to determine if the current navigation item matches the current browsing page, so as to add specific CSS styles (such as highlighting) to improve the user experience.

Application: Displaying navigation in the template

How can you beautifully present these navigation items on the website front-end after configuring them in the background? AnQiCMS provides powerful template tag support, among whichnavListThe label is specifically used to call the navigation menu.

For example, by{% navList navs with typeId=1 %}In this way, you can get the "main navigation" category in the background (assuming itstypeIdNavigation data under 1). These data will be provided to you in a recyclable list (navs). In the template, you can use thefortag to iterate over each navigation item, through{{item.Title}}to get the display name,{{item.Link}}Get the link address, even through{% if item.NavList %}To determine if there is a submenu, and further nested loop to display the second-level navigation. Combine{% if item.IsCurrent %}Conditional judgment, you can easily implement the navigation highlight effect on the current page.

In summary, AnQiCMS provides powerful and intuitive control capabilities in website navigation configuration.Whether it is a built-in link that you want to quickly set up, or a category page link that needs to be closely integrated with the website content, or a flexible external link, it can enable you to manage and display with ease.By fine-tuning the display settings, your website navigation can not only guide users clearly but also add points to SEO performance and overall user experience.


Frequently Asked Questions (FAQ)

Q1: Can I mix 'Internal Links', 'Category Page Links', and 'External Links' in the same navigation menu?A: Absolutely, it can be done. The design of AnQiCMS allows you to freely combine these three different types of links in the same navigation category.For example, you can set 'Home' as an internal link, set 'Product Category A' as a category page link, and set 'Collaborative Cases' as an external link to the partner's website, so that they can coexist harmoniously in the same navigation menu.

Q2: If my website has multiple language versions, can each language version have a different navigation menu?A: Sure. AnQiCMS supports multi-site management and multilingual functionality.You can create an independent site for each language version, and then configure the unique navigation menu for that language version in the background of each site through the "Navigation Category Management" feature.This way, users of different languages can see navigation content customized for their language when they visit.

Q3: If I change the URL alias of a category or delete a single page, will the links pointing to them in the navigation automatically update or remove?A: For navigation items added through the "Category page link" type, if you modify the associated category or single page URL alias in the background, the navigation link will be automatically synchronized for updates.If a category or single page is deleted, the navigation items may become invalid due to the inability to find the target, usually resulting in a broken link or a 404 page, so it is recommended to check and adjust the navigation menu in time when deleting a category or single page.And the 'built-in links' and 'external links' need to be manually checked and updated because they are either system predefined or manually entered URLs.