Website navigation, just like a map for users to explore your website, a clear and efficient navigation can greatly enhance the user experience and help 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
A variety of navigation locations and level management
In AnQiCMS, you do not have to adhere to a fixed navigation menu.You can create multiple independent navigation groups through the "Navigation Category ManagementEach navigation group can have its own independent link list and display logic.
In addition, AnQiCMS supports up to two levels of navigation, which means you can set sub-navigation under the main navigation items, forming a dropdown menu or a multi-level structure. This is very useful for organizing content with deep levels.
Flexible configuration of three link types
AnQiCMS will categorize navigation links into three basic types, each with its unique application scenarios, making the guidance of website content more intuitive.
FirstlyBuilt-in link.Imagine that your website needs a link to the homepage, or directly to the list page of all articles and all products.AnQiCMS kindly provides the "built-in linkIf you create other custom content models, their homepages will also appear as built-in links.这类链接的优势在于其稳定性和便捷性,无需手动输入URL,系统会自动识别并生成正确的路径,大大减少了出错的可能。
ThenCategory page link.When your content becomes richer and you need to guide users to specific article categories, product categories, or independent single pages (such as "About UsAt configuration time, 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 pseudo-static rules or modify the alias), the links in the navigation will also be automatically synchronized and updated without the need to manually modify them one by one, which is very convenient for the long-term maintenance of the website.
Finally isExternal Link.While "external link", it gives you a great degree of freedom.You can easily add it, whether it is a specific page within the site, such as a customized function page that does not belong to a category or a single page, or an external cooperative website, social media homepage (such as a corporate Weibo, LinkedIn homepage, Facebook homepage).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 an information display platform, but also a bridge to the external world.
Navigation refinement settings for a more expected display
AnQiCMS's navigation configuration is not as simple as link types, it 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
- Subtitle nameIf your website needs bilingual display, or you want to add some supplementary notes below the main title, such as the main navigation is 'Product', the subtitle is 'Products', then 'Subtitle Name' can come in handy.
- Navigation descriptionFor some navigation items that require additional hints or SEO considerations, you can use the "Navigation Description" to add more information. This content may be used as the tooltip text when hovering over the template design, or as auxiliary information for search engines to understand the navigation content.
- Display OrderThrough adjusting the number of 'Display Order' (the smaller the number, the closer to the front), you can easily arrange the navigation item layout without performing complex drag-and-drop operations.This is very efficient when adjusting the navigation structure.
- Highlight of the current page:AnQiCMS的模板标签(如 English
navList)在获取导航数据时,还会带有一个 EnglishIsCurrentProperty.When developing templates, you can use this property to determine whether the current navigation item matches the current page being browsed, so that you can add specific CSS styles (such as highlighting) to enhance the user experience.
实践运用:在模板中呈现导航 English
When you have configured these navigation items in the background, how can you present them beautifully on the website front end? AnQiCMS provides powerful template tags, wherenavListTags are specifically used to call the navigation menu.
For example, through{% navList navs with typeId=1 %}such a way, you can get the "main navigation" category of the background (assuming that it istypeIdFor 1) all navigation data. These data will be provided to you in a recyclable list (navs) format. In the template, you can use thefor tag to iterate over each navigation item, through{{item.Title}}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. Combined{% if item.IsCurrent %}Condition judgment, you can easily implement the navigation highlight effect of the current page.
In summary, AnQiCMS provides powerful and intuitive control capabilities in website navigation configuration.Whether it's a built-in link for quick setup, a category page link that is closely integrated with website content, or a flexible external link, you can manage and display them with ease.By fine-tuning the display settings, your website navigation can not only guide users clearly but also add points to the SEO performance and overall user experience.
Common Questions (FAQ)
Q1: Can I mix 'Built-in links', 'Category page links', and 'External links' in the same navigation menu?A: Yes, absolutely.AnQiCMS design allows you to freely combine these three different types of links within the same navigation category.For example, you can set "Home
Q2: If my website has multiple language versions, can each language version have a different navigation menu?A: Okay.AnQiCMS supports multi-site management and multi-language functionality.You can create a separate site for each language version, and then in the backend of each site, configure the navigation menu specific to that language version through the 'Navigation Category Management' feature.So, users in different languages can see navigation content customized for their language.
Q3: If I modify the URL alias of a category or delete a single page, will the links pointing to them in the navigation automatically update or be removed?A: For navigation items added through the "Category Page Link" type, if you modify the associated category or single page's URL alias in the backend, the navigation link will be automatically synchronized and updated.If the category or single page is deleted, the navigation item will become invalid due to the inability to find the target, and it will usually display as a broken link or a 404 page. Therefore, it is recommended to check and adjust the navigation menu in time when deleting a category or single page.And "Built-in link" and "External link" require manual checking and updating, as they are either system predefined or manually entered URLs.