Does AnQiCMS provide a convenient tag to display the website logo and name, and support multi-site calls?

Calendar 👁️ 95

During the process of managing and operating a website, the brand image of the website - the Logo and the website name - is undoubtedly the most core identification.They not only represent the identity of the website, but also directly affect users' perception of the brand.For a system like AnQiCMS that is committed to providing efficient content management solutions, how conveniently to display these key information, and support flexible calls under multi-site environments, is an important standard to measure its usability and powerful functions.

The design concept of AnQiCMS in this aspect is centered around 'convenience' and 'flexibility'.It allows operators to centrally manage these core brand elements in the background, and easily present them in various corners of the website through a set of intuitive template tag systems, even when facing complex enterprise multi-site needs, they can handle it with ease.

Backend centralized management, a one-time solution

AnQiCMS provides a very user-friendly management interface for the website's logo and name.You do not need to touch any code, just go to the "Global Feature Settings" area in the background, and you can find the configuration items specifically used for the "Website Name" and "Website Logo".Here, you can easily upload the website's logo image and enter the brand name you want to display on the website.This centralized management approach ensures that all brand information originates from the same source, greatly simplifying the update and maintenance work.When the website name or logo needs to be changed, it only needs to be modified once in the background, and all the front-end pages that have called this information will be automatically updated, saving a lot of trouble from manual adjustments.

Convenient calling of template tags

Present the Logo and website name set up in the background on the website front end, AnQiCMS also provides extremely convenient template tags.It uses a syntax similar to the Django template engine, allowing you to naturally and smoothly refer to these global variables when creating or modifying templates.

Just use it in the header, footer, or any place where you need to display the website name,systemLabel collaborationSiteNameField can be. For example, you can call it like this:{% system with name="SiteName" %}It will directly output the website name you have set in the background. If you want to use it more flexibly, you can also assign it to a variable, for example{% system siteTitle with name="SiteName" %}Then use it multiple times in the template{{siteTitle}}to output.

Similarly, the path of the website's logo image can be accessed throughsystemlabel'sSiteLogothe field easily:{% system with name="SiteLogo" %}. Usually, this will combine with HTML's<img>Tag usage, for example:<img src="{% system with name="SiteLogo" %}" alt="{% system with name="SiteName" %}" />This method is not only convenient, but also ensures that the Logo image is displayed on the page at the same timealtThe website name property also helps with SEO.

Flexible invocation in a multi-site environment

AnQiCMS is a major highlight due to its powerful multi-site management capabilities, which is undoubtedly a blessing for enterprises with multiple brands, sub-sites, or content branches.In a multi-site environment, in addition to the default site, you may also need to cross-reference some brand information between different sub-sites, such as displaying the main site's logo on a sub-site or uniformly displaying the name of a parent company of a group.AnQiCMS has fully considered this requirement to providesystemTag introducedsiteIdParameter.

siteIdThe parameter allows you to easily bypass the restrictions of the current site, calling any other configured site's Logo and name. For example, if you are managing a sub-site but want to display the website Logo with ID "1" (usually the main site) on the page, just insystemSpecify extra in the tagsiteIdlike this:<img src="{% system with name="SiteLogo" siteId="1" %}" alt="集团主站" />This makes the integration of content and brand elements between multiple sites extremely simple and efficient.Whether you manage how many sites, you can flexibly call and display the brand information of each site through a unified tag system, greatly reducing the complexity of maintenance, and ensuring the consistency of brand display.

In general, AnQiCMS provides intuitive backend management for displaying website logos and names, and also achieves high convenience and flexibility through concise and powerful template tags.Whether it is a single-site or a complex multi-site architecture, it can help you easily maintain and display the core brand identity, making your website operation twice as efficient.


Frequently Asked Questions (FAQ)

Q1: How do I know each site?siteIdSo that it can be called in the templateA1: Each site'ssiteIdusually can be viewed in the "Multi-site Management" feature of the AnQiCMS backend.When you add or manage sites, the system automatically assigns a unique ID to each site.You just need to go to the list to find the corresponding site ID, then in the template'ssystemSpecify this ID in the tag.

Q2: If I do not want to use the Logo or website name from the global settings and want to display completely different brand information on a specific page, does AnQiCMS support this?A2: Yes, AnQiCMS provides great flexibility. For a specific page, you can combinesetorwithTemplate tags, directly define temporary Logo image path or website name variables in the template of the current page. These local variables will override the global settings. In addition, content models, categories, or single pages also support custom fields, where you can set unique Logos or names for specific content and then use them in the corresponding templates.archiveDetail/categoryDetailorpageDetailCall tags.

Q3: Besides the Logo and website name, are there other global settings that can also be accessed throughsystemtags and support multi-site calls?A3: Of course.systemA tag is a general system setting call tag. BesidesSiteNameandSiteLogoIt can also call other information configured in the background "Global Function Settings", such asSiteIcp(Website record number),SiteCopyright(Copyright information),BaseUrl(Website homepage address) and others. These fields also support cross-site calling viasiteIdparameters, greatly enhancing the customization capabilities of templates and the convenience of unified management across multiple sites.

Related articles

How to correctly display user comments and their review status in the AnQiCMS comment list?

In AnQiCMS, managing and displaying user comments, especially their review status, is a very practical feature in content operation.It not only helps us maintain community order, but also allows flexible control over the presentation of website content, ensuring the quality and compliance of published content.Next, let's take a detailed look at how to correctly display user comments and their review status in your website comment list. ### Core Function: Comment List Invocation To display user comments on the website, we need to rely on the powerful template tag system of AnQiCMS.

2025-11-09

How does AnQiCMS ensure that the HTML content output through the `safe` filter is secure and correctly parsed and displayed on the front end?

In website operation, we often need to display user input or HTML content generated by a rich text editor.How to ensure that these dynamic contents are displayed correctly and avoid potential security risks is a challenge that every content management system must face.AnQiCMS as a Go language CMS that focuses on security has a mature mechanism in this aspect, especially the `safe` filter it provides, which plays a key role in ensuring the security and correct parsing of front-end content. ### Default security considerations: Why escape automatically?

2025-11-09

How to set up an independent display layout and elements for the single page of AnQiCMS, such as the 'About Us' page?

In AnQiCMS, setting up an independent display layout and elements for single pages like "About Us" can make the website content more distinctive and professional.AnQiCMS with its flexible template engine and modular design makes this process intuitive and efficient.Why do you need a custom layout for a single page?

2025-11-09

How to flexibly call and display the value of the 'Content Model Custom Field' in the AnQiCMS frontend page?

AnQi CMS excels in content management, especially its flexible content model and custom field features, which greatly facilitates the construction of personalized websites for us.The content of a website is often not just the title and text, but we may also need various additional information such as the author of the article, the source of publication, product specifications, event location, and floor area.These custom fields are like a 'personal filing cabinet' for content, allowing us to tailor the required attributes for each content type according to business needs.

2025-11-09

How to accurately format the display of the article's publication and update timestamps in AnQiCMS templates?

In website content operation, clearly displaying the publishing and update time of articles is crucial for improving user experience, providing timeliness information of content, and optimizing search engine indexing.AnQiCMS provides a powerful and flexible timestamp formatting function in the template, allowing us to convert the original timestamp data into user-friendly date and time display according to specific needs.

2025-11-09

How does AnQiCMS dynamically generate and display breadcrumb navigation and control whether to include the current page title?

When building a user-friendly website, breadcrumb navigation plays an indispensable role.It not only can intuitively display the user's current position on the website, avoid getting lost, but also optimize the website structure, which is very beneficial for search engine optimization (SEO).For users of AnQiCMS, utilizing its powerful template tag system to dynamically generate and flexibly control breadcrumb navigation is the key to improving the website experience.

2025-11-09

How to configure AnQiCMS so that it displays correctly as an independent mobile site on mobile devices?

In AnQiCMS, to provide a better user experience for mobile device users, we can configure the website to display independent site content on mobile devices.This independent operation model for PC and mobile terminals not only helps to design and optimize for different devices in a refined manner, but also can improve the SEO performance of mobile terminals in specific scenarios.AnQiCMS provides us with a variety of website display modes, including the "PC+Mobile independent site" mode, which is the basis for realizing independent content display on the mobile end.Next, we will step by step discuss how to configure AnQiCMS

2025-11-09

How to automatically render Markdown format content to HTML when AnQiCMS displays article content?

In Anqi CMS, automatically rendering Markdown content into HTML is a core feature provided by the system, aiming to help content creators publish rich text content in a concise and efficient manner.This process is not a mysterious black box operation, but is achieved through clear settings and flexible template tags.

2025-11-09