Appreciate the beauty of multiple sites and data structure in AnQiCMS

In the AnQiCMS ecosystem, a website is no longer an isolated individual, but an organic entity that can be combined and managed uniformly as needed.The core feature of 'Multi-site Management' allows enterprises with multiple brands, sub-sites, or content branches to easily manage them from a single backend, greatly reducing redundant work and promoting data sharing and resource integration across sites.This is the profound understanding and exquisite design of AnQiCMS on 'data structure'.

Each content model (such as articles, products, single pages, etc.) is granted a high degree of flexibility, allowing for customized fields based on business needs, forming personalized content presentation.At the same time, the content is categorized under different categories and tags, forming a hierarchical and logically clear information network.This means that in a multi-site scenario, each site may have its own independent content model and classification system, which are key elements构成 forming its unique 'data structure'.

How can users and search engines clearly perceive these carefully constructed internal hierarchies and the potential connections between multi-sites?This leads to the "smart map" of the website—breadcrumb navigation.

Breadcrumbs navigation tag: AnQiCMS Smart Guide

Breadcrumb Navigation is like markers on a mountain path, guiding the user to their current location and showing them how they got there. In AnQiCMS, it is not just a simple static link list, but through its powerfulbreadcrumbThe label is dynamically generated, intelligently reflecting the deep data structure of the website.

The model name itself also serves as the display name at the model level, appearing in the breadcrumb navigation.This allows users to immediately recognize the macro type of the current content, whether it is 'article' or 'product', it is clear at a glance.

Crossing Site Boundary: How does the multi-site data structure map to breadcrumbs?

The most remarkable multi-site feature of AnQiCMS, which is also cleverly reflected through the breadcrumb navigation tags. Although in most cases, the breadcrumb navigation mainly reflects the internal structure of the current site of the user, butbreadcrumbTags providesiteIdParameter, this provides the possibility of multi-site data structure mapping in advanced scenarios.

By specifyingsiteId, template developers theoretically can callspecific siteThis is breadcrumb data. This means, on a main site page, if you need to reference or display the path information of a sub-site (such as a dedicated product site),siteIdParameters come into play. Although in actual operation, we usually do not mix breadcrumbs from different sites to form a path, as this may confuse the user.siteId

For example, suppose you have a brand official website (siteId=1) and a product special station (siteId=2).When the user browses a product on the product special topic page, the breadcrumb will display as 'Product Special Topic Homepage > Product Category > Specific Product'.siteId=2To obtain the breadcrumb path segment of the product within the special topic page, so that users can have an awareness of the product's position across different site dimensions without page redirection.This ability demonstrates AnQiCMS' deep expertise in data decoupling and cross-site data access.

Tag parameter fine control: Custom breadcrumb experience

In order to better serve different website designs and user needs, AnQiCMS'sbreadcrumbTags also provide flexible parameter control:

  • indexParametersAllow you to customize the display name of 'Home' in the breadcrumb path, for example, setting it to 'Homepage', 'My Blog', or brand name, to maintain consistency with the overall style of the website.
  • titleParametersControl whether the breadcrumb path includes the title of the current page. In some designs, the current page title may already be prominently displayed in the main content area, in which case it can betitle=falseAvoid repetition, making the page layout more concise.
  • crumbsvariable: Through this variable, you can get a collection of the names of each node in the breadcrumb path (Name)and link(LinkThe array object provides extensive freedom to template developers, allowing them to utilizeforLoop through each breadcrumb node for custom rendering, such as adding icons, special styles, or not adding links to the last node, etc., to meet the fine needs of visual and interactive requirements.

It is these meticulous features that make the breadcrumb navigation of AnQiCMS not just a basic navigation element, but also an intelligent tool that reflects its multi-site data structure and enhances the overall performance of the website.

Concluding remarks

AnQiCMS throughbreadcrumbBreadcrumbs navigation tags not only provide clear path guidance for website users and enhance the browsing experience, but also build a friendly internal link structure for search engine optimization. In the multi-site management scenario,siteIdThe introduction of parameters further highlights the forward-thinking and flexibility of AnQiCMS in data structure design, allowing the independent content hierarchy of each site to be clearly presented and enables cross-site path information intercommunication when needed.This undoubtedly provides an efficient and insightful content management solution for small and medium-sized enterprises, self-media operators, and multi-site managers.


Common Questions (FAQ)

  1. Question: Does breadcrumb navigation support custom levels, such as, I want to add a filter condition under the category as a breadcrumb level?AnQiCMS's breadcrumb navigation is mainly automatically generated based on the content model, category, and the hierarchical relationship of the document itself.If you need to reflect the filtering conditions (such as product attribute filtering) in the breadcrumbs, this usually requires implementing custom template logic, as these filtering conditions are not fixed levels in the AnQiCMS data structure, but dynamic query parameters.crumbsThe output of the variable, manually constructing additional breadcrumb nodes.

  2. **Question: If my website is a single site, breadcrumb navigation