During the process of managing and operating a website, the brand image of the website - Logo and website name - is undoubtedly the most core identification.They not only represent the identity of the website, but also directly affect the user's 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 a multi-site environment, is an important criterion for measuring its ease of use 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 with a set of intuitive template tags, they can easily present them in every corner of the website. Even facing complex enterprise multi-site requirements, they can handle it with ease.
Background centralized management, one-time effort for all
AnQiCMS provides a very friendly management interface for the website's logo and name.You do not need to touch any code, just enter the 'Global Function Settings' area in the background, and you can find the configuration items specifically used for '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 front-end pages that call 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 on the backend on the website front end. AnQiCMS also provides extremely convenient template tags.It adopts syntax similar to Django template engine, allowing you to naturally and smoothly refer to these global variables when creating or modifying templates.
To display the website name at the top, bottom, or any place where it is needed, just usesystemlabel combined withSiteNameField is enough. For example, you can call it like this in the template:{% 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 first, for example{% system siteTitle with name="SiteName" %}Then you can use it multiple times in the template.{{siteTitle}}To output.
Similarly, the path to the website's logo image can be obtainedsystemTagsSiteLogoeasily via the field:{% system with name="SiteLogo" %}. Usually, this is combined with the use of HTML's<img>tags, 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 pagealtThe website name attribute also helps with SEO.
Flexible invocation in a multi-site environment
AnQiCMS's one of the major highlights is its powerful multi-site management capability, which is undoubtedly a blessing for enterprises that own 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 certain brand information between different sub-sites, such as displaying the main site's logo on a sub-site, or showing the parent company name of a group uniformly.systemLabel introducedsiteIdParameter.
siteIdThe parameter allows you to easily bypass the limitations of the current site, and call the Logo and name of any other configured site. 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, you just need tosystemLabel with additional specificationsiteIdlike 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.No matter how many sites you manage, you can flexibly call and display brand information of each site through a unified label system, greatly reducing the complexity of maintenance and ensuring consistency in brand display.
In general, AnQiCMS provides intuitive backend management for displaying website logo and name, 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 effective.
Common Questions (FAQ)
Q1: How do I know each site?siteIdso that it can be called in the template?A1: Each site:siteIdIt is usually possible to view it in the "Multi-site Management" function of the AnQiCMS backend.When you add or manage sites, the system will automatically assign a unique ID to each site.systemYou can specify this ID in the label.
Q2: If I don't 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 specific pages, you can combinesetorwithTemporary logo image path or website name variables are defined directly in the current page template. 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/categoryDetailorpageDetailUsing tags to call.
Q3: Besides the Logo and website name, are there any other global settings that can also be called throughsystemtags, and support multi-site calling?A3: Of course.systemLabel is a general system setting call label. In addition,SiteNameandSiteLogoit can also call other information configured in the background "Global Feature Settings", such asSiteIcp[Website Record Number],SiteCopyright(Copyright Information),BaseUrl(Website home page address) etc. These fields also support cross-site calls through parameters, greatly expanding the customization capabilities of the template and the convenience of unified management across multiple sites.siteIdParameters can be used for cross-site calls, greatly enhancing the template's customizability and the ease of managing multiple sites uniformly.