Feature preview

Feature Introduction

When multiple sites share a single template, how to separately cover styles and configurations

Under multi-site management, the public template carries the structure and common components, the site-level carries color matching, navigation, and site information, and the order of coverage determines whether a change will affect other sites. This article provides the approach of layered principles, naming and coverage order, and how to first verify in low-risk sites when using AI to modify templates, and then check the homepage and list pages of each site one by one.

Template development Multi-site

Feature Introduction

When multiple sites share a single template, how do you cover styles and configurations separately, which directly determines whether changes will affect other sites. The public template carries the structure and common components, while the site-level carries color matching, navigation, and site information. Without clear agreement on the order of coverage, changing the public segment may affect all sites. AnQiCMS provides multi-site management, supporting the management of multiple independent sites, suitable for multi-brand, multi-theme websites, and thus, layering and coverage have become an unavoidable issue. This article provides a division of responsibilities for two layers, agreements on the order of coverage, and the practice of verifying first and then checking each site sequentially.

What content should be placed in the public layer, and what should be placed in the site layer?

Multi-site management puts multiple independent sites into the same template system. The primary thing is to divide the content into two layers: the public layer places parts unrelated to the brand and reusable by all sites, and the site layer places parts that differentiate the brand and theme. The judgment standard is whether changing it will affect other sites: if it will take effect globally, place it in the public layer, and if it only affects the current site, place it in the site layer. The table below divides what should be placed according to the public layer and site layer.

What should be placed Public layer Site layer
Structural components Page skeleton, general header and footer fragments Site-specific block addition and deletion
Universal style variables Font size levels, spacing and other reusable variables Local variable used for brand coverage
Color coordination and brand style Do not display or only display the default value Color coordination and brand identification of each site
Navigation and site information Universal structure segment of navigation Navigation items and site information of each site
Watermark and email reminder Do not display Watermark, email reminder, and other settings of each site

Color coordination, navigation, watermarks, and email reminders that distinguish brand and site preferences are placed at the site level, and structures and common components are placed in the public layer to reduce repetitive maintenance and avoid settings from one site being transferred to another site.

When files with the same name are allowed to overwrite, how should the order and naming convention be agreed upon?

When the public layer and the site layer allow the same file names to appear, it is a common design choice to let the site layer override the public layer. But the specific order of parsing and overriding in multi-site management is a boundary that needs to be clarified in the plan and cannot be guessed. The team should write down the order as an agreement: the public layer as the bottom, the site layer as the standard, and the same-name fragments are sealed by the site layer; names are used as prefixes to distinguish between general fragments and site fragments, so that people can see at a glance which layer a style segment belongs to and whether it will overflow. Once the naming is confused, it is unclear who the files belong to, and overriding becomes a matter of chance.

How do we first validate the change on a low-risk site before expanding it?

Cover the sequence to solve the range of impact, verify whether the scope is underestimated. A safe approach is to pick a test site, only change the public segment, observe its连锁 effects on the homepage and list page, confirm that the style is not biased, and then check each site one by one. When checking each site, pay attention to whether the navigation is complete under the new style, whether the watermark still follows the site settings, and whether configurations like email reminders at the site level have been mistakenly changed to global. Confirm that a site is error-free before pushing the next one, and if there is a deviation, go back to the test site for comparison and do not make mistakes on the formal site.

What should be noticed when editing public files with a visual template?

AnQiCMS provides AI visual template editing, which can be used to directly modify the template code with AI assistance. Pay attention to the fact that visual template editing modifies the template code itself: changing the site files only affects the current site, while changing the public files will take effect globally. Therefore, when using AI assistance, it is necessary to limit the range of changes, first clarify whether you want to modify the site layer or the public layer, to avoid the AI accidentally modifying the public segment. Keep a rollback version before making changes, and after making changes, first check the test site and then check each site one by one, so that if the public files are accidentally changed, they can also be rolled back.

Common questions

Will using a common template make the color schemes of all sites become the same?

I don't know, the premise is that the color matching is placed at the site level. The common layer only places structural and general style variables, and the color matching and brand style are defined separately by each site. The site layer only affects the current site. Only when the color matching is mistakenly placed in the common layer will the entire change affect the entire site.

After modifying the common segment, the home page of a certain site is disordered, how can you judge whether it is a problem of coverage?

First, check if there is an identical definition in the site layer of the site. If the site layer should receive the mouth but leaves a missing segment, the new style of the common layer will appear. Complete the order and naming, let the site layer have a complete definition of the parts to be distinguished, and then check the home page and list page.

Can AI visual template editing only change one site without affecting others?

You can limit the scope to the site files, allowing AI to only modify the styles and configuration snippets of the current site. Avoid public files: The visual template editing changes the template code itself, and any changes to public files will take effect globally. Keep backups before making changes, and check each site after changes to ensure the impact is confined to a single site.

Related functions

Preview

The only thing that the site description file really enforces is one level one title, to what extent can the rest be saved?

llms.txt The mandatory parts in the proposal are only first-level headings, used to write the name of the project or site; abstract blocks, descriptive paragraphs, grouped links, and optional sections can be chosen as needed, while the file itself should remain small enough to fit into the context. This article divides the mandatory and optional sections of the original proposal, explaining what it manages with the site map, the crawl exclusion file, and what to pay attention to when automatically generated within the site.

Preview

Should the site description file for large models indicate the content validity, and how should it be coordinated with scheduled publishing?

Whether or not to mark the timeliness of content item by item in the site description file depends on whether it serves as navigation or conclusion. It is more like a directory for the model, where entries only need to clarify what is in this section and when it is worth taking. What really determines when content becomes visible to the outside world is the timing release and time factor within the site. This article introduces three ways to position timeliness information, as well as the refresh order between the description file and the timing release and site map.

Preview

What will happen if documents in the recycle bin are not cleared for a long time, and what should be confirmed before recovery?

Deleting formal documents is moving them to the recycle bin instead of a physical deletion, so the recycle bin will accumulate historical entries for a long time; irregular cleaning will bring problems such as accidental recovery and old drafts reappearing in lists and statistics. This article explains the visibility of formal documents, drafts, pending publication, and the recycle bin in four states, and provides the categories, aliases, and site ownership that must be confirmed before recovery.