How does the `SiteName` field in AnQiCMS support multilingual title display?

Good, as an experienced website operation expert, I am very willing to deeply analyze AnQiCMS for you.SiteNameHow does a field support multilingual title display and transform it into a practical and easy-to-understand article.


AnQiCMS Multilingual Practical:SiteNameHow to accurately reach global users with the title?

In the wave of global digital marketing, a website that can display content in the user's native language is undoubtedly a key to a company expanding into the international market and enhancing its brand influence. The "face" of the website - the site name (SiteNameHow to present accurately and consistently in different language environments is of great importance. Today, we will delve into how AnQiCMS cleverly achieves this by itsSiteNameThe field supports multilingual title display, helping your brand easily overcome language barriers.

AnQiCMS is an enterprise-level content management system developed based on the Go language, and it fully considered the needs of global operations from the very beginning.It deeply understands that multilingual support is not just about content translation, but also a systematic and strategic layout.SiteNameThis is the core field carrying the brand identity, AnQiCMS does not simply provide a multilingual input box, but integrates it with powerfulMulti-site managementDeeply integrated functions provide a flexible and robust solution for multi-language title display.

SiteName: The brand card of the website and the basics

First, let's understandSiteNameThe core function in AnQiCMS.It is not just a text field, but also the brand card of your website.SiteNameIt plays a crucial role. It is directly related to the brand recognition, professionalism, and SEO performance.

In AnQiCMS, you can configure the website name through the background "Global Function Settings" and easily call it with template tags:

{# 调用当前网站的名称 #}
<div>网站名称:{% system with name="SiteName" %}</div>

This tag will output the current website configuration'sSiteNameValue. But if your website needs to support multiple languages, just setting oneSiteNameis obviously not enough.

Skillfully integrate multi-site management: multi-languageSiteNamethe way to implement it

AnQiCMS handles multilingualismSiteNameAt that time, it adopts an efficient and logical strategy:It realizes the independent configuration of multilingual sites through multi-site managementThis means, you do not need to configure multiple language versions within a single site, but rather create an independent site for each language.SiteNameCreate an independent site for each target language.

Imagine that the name of your brand is "AnQi Technology".For Chinese users, you may want to see 'AnQi Technology'; for English users, it might be 'AnQi Tech'; and for Japanese users, it could be 'AnQi テクノロジー'.

  1. Create an independent site for each target language.For example, you can setwww.yourbrand.comAs the Chinese main site,en.yourbrand.comAs the English site,jp.yourbrand.comAs the Japanese site.
  2. Each site can be configured independently.SiteNameIn the background settings of the Chinese site,SiteNamefill in "AnQi Technology"; in the English site's background,SiteNameFill in "AnQi Tech

In this way, when users visit different language sub-sites,{% system with name="SiteName" %}The label will be automatically retrieved and displayedCurrent sub-siteThe language-specific name configured. This design allows for multi-languageSiteNameThe management becomes extremely intuitive and powerful, avoiding complex multilingual field mapping, and also allows each language site to have completely independent configuration and optimization space.

Global perspective:{% languages %}Concatenating language sites

Configured independently in each siteSiteNameAnQiCMS also provides a powerful,{% languages %}Label, allowing you to easily access the list of all multilingual site lists on any site, including their language names, links, andindividuals'SiteName. This tag is for the language switcher andhreflangthe key tag.

For example, in your website template, you can create a language switcher like this:

{%- languages websites %}
{%- if websites %}
<div>
    <span>切换语言:</span>
    {%- for item in websites %}
    <a href="{{item.Link}}">
        {%- if item.LanguageIcon %}
        <img src="{{item.LanguageIcon}}" alt="{{item.Name}} 图标"/>
        {%- else %}
        {{item.LanguageEmoji}}
        {% endif %}
        {{item.Name}} {# 这里的 item.Name 就是对应语言站点的 SiteName #}
    </a>
    {%- endfor %}
</div>
{%- endif %}
{%- endLanguages %}

Here, item.Namewhich is the configuration of each independent language site.SiteNameIt is used as the identifier for the language site. This allows users to clearly see the names of different language sites and switch between them.

In addition, to optimize the search engine's understanding of multilingual sites, AnQiCMS also supports by{% languages %}dynamic generation of tagshreflangattributes, which is crucial for international SEO:

{# 将 Hreflang 标签放入 HTML 的<head>区块 #}
{%- languages websites %}
{%- for item in websites %}
<link rel="alternate" href="{{item.Link}}" hreflang="{{item.Language}}">
{%- endfor %}
{%- endLanguages %}

This code structure ensures that search engines can correctly identify your multilingual pages, avoid content duplication, and guide users to the most relevant language version, thereby improving global search rankings.

details consideration and operational value

this multilingual of AnQiCMSSiteNameThe method is not limited to names, it also extends to the website's TDK (Title, Description, Keywords) settings.Each language site can have its own TDK, even each document, category, and single page can be configured with its language-specific TDK.This means that the title of your English site's homepage can be 'AnQi Tech - Leading Go CMS', and the title of the Japanese site is 'AnQi テクノロジー - 最先端のGo CMS'.This fine management allows your content marketing and SEO strategy to truly adapt to local conditions, maximizing your reach to the target audience.

In summary, AnQiCMS utilizes its core multi-site management capabilities toSiteName


Frequently Asked Questions (FAQ)

**Q1: