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.