How to flexibly configure the display of "Built-in links", "Category page links", and "External links" in the website navigation?

Calendar 👁️ 77

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.

Related articles

How does image processing in content settings (Webp, large image compression) affect page loading speed and image display quality?

In website operation, images are undoubtedly the key elements that attract users and enrich content.High-quality images can greatly enhance the attractiveness of a page, whether it is for product display, article illustrations, or brand image.However, the size of image files is often a major culprit in slowing down website loading speed.Fortunately, AnQiCMS (AnQiCMS) provides powerful image processing functions in the content settings, such as WebP format conversion and automatic compression of large images, helping us cleverly balance image quality and page loading speed, thereby enhancing the overall user experience and SEO performance.###

2025-11-08

How to optimize search engine crawling and user experience with static rules (such as URL structure)?

In website operation, the URL plays a vital role.A well-designed URL can not only help search engines better understand and crawl the website content, but also significantly improve the user experience.AnQiCMS (AnQiCMS) understands this point, therefore, it has integrated flexible and powerful pseudo-static rules and 301 redirect management functions into its system, allowing website administrators to easily build URL structures that are friendly to both search engines and users. ### Static rules: Why are they so important?Imagine that

2025-11-08

How does the 'recommended attribute' of a document affect the call and display priority of content on the front end when it is published?

When using Anq CMS to manage website content, we often need to highlight certain important articles or products to make them easier for visitors to find.This is when the "recommended attribute" of content publishing comes into play.It is not a complex backend setting, but rather a very intuitive option that can be seen on the 'Add Document' interface every time we publish or edit a document. It is an important tool for effectively managing content display and call priority.

2025-11-08

How to correctly display mathematical formulas and flowcharts in Markdown content?

With the popularity of the built-in Markdown editor of AnQiCMS, many users hope to be able to display information more flexibly in their website content, especially for technical documents, tutorials, or data analysis, the presentation of mathematical formulas and flowcharts has become particularly important.AnQiCMS integrates external libraries to bring powerful extension capabilities to Markdown content, making it easy and convenient to display professional content.

2025-11-08

How to customize the display layout and elements of the AnQi CMS article detail page?

In AnQi CMS, managing and displaying content is a core function, and the article detail page, as an important interface for users to obtain information and interact with the website, is directly affected by the display layout and design of the elements, which in turn affects user experience and information communication efficiency.AnQi CMS provides high flexibility, allowing users to deeply customize the display of article detail pages according to their own needs. To customize the article detail page, you first need to understand the Anqi CMS template system.It uses syntax similar to the Django template engine, template files are usually suffixed with .html

2025-11-08

How to accurately retrieve and display a specific article list based on category ID?

In a content management system, effectively organizing and displaying content is crucial for improving user experience and website SEO performance.AnQi CMS with its flexible and powerful template engine allows you to easily implement the requirement of fetching and displaying a list of articles based on a specific category ID.Whether it is to build a special page, category archive, or simply to display the latest content of a specific column on the homepage, Anqi CMS can provide intuitive and efficient solutions.This article will deeply explore how to utilize the template tag feature of Anqi CMS, especially the `archiveList` tag, to accurately achieve this goal

2025-11-08

How does Anqi CMS implement seamless language switching and display of multilingual content on the front-end page?

Today, with the deepening of globalization, website content that can reach users of different languages has become a key factor in enterprises expanding the market and enhancing brand influence.AnQiCMS (AnQiCMS) is well aware of this need, and from the very beginning of system design, it has made multilingual support one of its core features, aiming to help users easily switch and display content seamlessly on the front-end page.How does Anqi CMS help us build and manage multilingual websites and allow visitors to switch between different language versions smoothly?

2025-11-08

How to use the recommendation attribute (Flag) of AnQi CMS to display featured content on the homepage or special page?

AnQi CMS provides an efficient way to manage and highlight important content on your website, that is, through the "recommended attribute" (Flag).This feature allows you to easily display carefully selected content on the homepage, special pages, or other key positions, thereby guiding visitors' attention and enhancing the interactivity and information transmission efficiency of the website. ### Recommended Attribute Settings: The First Step of Content Selection In the AnQi CMS backend, the starting point of content management is to publish or edit documents.When you are ready with high-quality content, you hope it will stand out at a key position on the website

2025-11-08