How to configure and display the website name and copyright information in AnQi CMS?

Calendar 👁️ 66

The name and copyright information of a website is an important manifestation of its brand image and legal attribution.In AnQiCMS (AnQiCMS), these core elements are configured and displayed flexibly and intuitively, which can help website operators manage easily and ensure the professionalism and compliance of the website.

Background configuration of website basic information

In AnQiCMS, the website name, copyright information, and other basic configurations are mainly concentrated in the "Global Function Settings" area of the background.Here is like the 'control center' of your website, centrally managing many core parameters.

  1. Website NameThe website name is the face of your website and an important basis for search engines to recognize your website brand.In the global feature settings, you can find the item "Website Name".The name entered here, which is usually used as a suffix for web page titles or referenced in various corners of the website (such as headers and footers).A clear and distinctive website name is crucial for enhancing user memory and brand recognition.

  2. Copyright informationCopyright information is usually located at the bottom of the website and is an important part of declaring ownership of the content.In the global feature settings, you can enter a detailed copyright statement, for example, “© 2023 [Your company name]. All Rights Reserved.”. Here you can enter plain text, or you can include HTML tags for simple formatting or adding links.A clear copyright statement helps protect your original content and show visitors the professionalism of your website.

  3. Other related settingsIn addition to the name and copyright, the global function settings also include some parameters closely related to the identity of the website:

    • Website LOGO: Used to upload your brand identity image, usually displayed in the header of the website.
    • Website registration numberIf you operate in mainland China, the filing number is required and it will usually link to the Ministry of Industry and Information Technology's government service platform.
    • Home Page AddressSpecify the root domain of the website to ensure the system can correctly generate all internal links.
  4. Custom settings parametersIf the default settings do not meet all your needs, AnQiCMS also provides a 'Custom Setting Parameters' feature.This means you can add any custom website information according to the design of the template.For example, if your website needs to display a special help page link but does not have a corresponding built-in field, you can add a parameter named "HelpPageLink" here and fill in the corresponding URL.This feature greatly enhances the flexibility of website configuration, allowing you to expand website functions without modifying the code.

Display this information in the front-end template.

After configuring these basic information in the background, the next step is how to correctly display them on the front-end page of the website. AnQiCMS provides a powerful template tag system, where the “System Tags” (system)is used to get these background configurations tools.

UsesystemThe tag is very direct, you just need to specify the field name you want to get.

  1. Display website nameIn the template, if you want to display the website name set previously in the background, you can call it like this:

    <title>{% tdk with name="Title" siteName=true %}</title>
    

    HeretdkThe tag will automatically retrieve the title of the current page and according tositeName=trueThe setting, append the global setting website name after it. If you just want to display the website name independently on other parts of the page, you can use it directlysystemTags:

    <div>欢迎来到 {% system with name="SiteName" %}</div>
    
  2. Display copyright contentCopyright information usually contains some HTML tags (such as<strong>or<a>), so special attention needs to be paid to their use when displayed|safeA filter to ensure that HTML content is parsed correctly by the browser and not displayed as plain text. Assuming you have set the copyright information in the background as “© 2023”AnQiCMS. All Rights Reserved.

    <footer>
        {% system siteCopyright with name="SiteCopyright" %}{{siteCopyright|safe}}
    </footer>
    

    Here, we first declareSiteCopyrightAssign tositeCopyrightthe variable, then through{{siteCopyright|safe}}Output it safely to the page.

  3. Show website logoThe display of the website logo is also simple, usually it is an image URL:

    <header>
        <img src="{% system with name="SiteLogo" %}" alt="{% system with name="SiteName" %}" />
    </header>
    

    We use it here at the same timeSiteLogoas the image source,SiteNameAs an image alternative text, it helps with SEO and user experience.

  4. Display the website's filing numberThe record number usually has a link to the government website, so it can be used in the template like this:

    <p>
        <a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">{% system with name="SiteIcp" %}</a>
    </p>
    

    rel="nofollow"andtarget="_blank"It is recommended attribute, the former tells the search engine not to track this link, and the latter opens the link in a new window.

  5. Display custom parametersIf you have customized a parameter named "HelpPageLink" in the background, its calling method is similar to the built-in parameters:

    <nav>
        <a href="{% system with name="HelpPageLink" %}">帮助中心</a>
    </nav>
    

    This way, no matter how you change the value of "HelpPageLink" on the backend, the front-end page will update synchronously.

Cautionary notes and **practice

  • Maintain consistencyEnsure that the website name, copyright information, and other settings you make in the background are consistent throughout the entire website, which is crucial for building a brand image.
  • SEO-friendlyThe website name is in<title>The display label has a direct impact on search engine optimization (SEO). Make sure it is concise and clear, containing brand keywords.
  • Legal complianceThe correct display of copyright information and filing number is a legal requirement for website operation, it must be accurate and correct.
  • Flexible application|safe: When you retrieve content from the background that may contain HTML code (such as copyright information), remember to use|safea filter, otherwise the HTML code will be escaped and affect the display effect.
  • Utilize custom parameters:Make good use of custom parameters can greatly improve the flexibility of templates, reduce the number of times template files need to be modified due to changes in requirements.

By following these steps, you can easily configure and display the name, copyright information, and other key basic data of your website, laying a solid and professional foundation for your website.


Frequently Asked Questions (FAQ)

Q1: Why is it sometimes necessary to add|safeFilter?A1: The template engine of AnqiCMS is designed to prevent potential security risks (such as XSS attacks), and by default, it will escape all HTML tags in the output content, treating them as plain text. Sometimes, copyright information needs to be included.<strong>/<a>Format with HTML tags. When you are sure that the output content is safe and needs to be parsed as HTML, you should use|safeA filter that tells the template engine that this content is 'safe' and can be rendered as HTML.

Q2: Do I have multiple child sites, can I set different website names and copyright information for each child site?A2: Yes, AnQiCMS supports multi-site management, and each site can have independent configurations.The website name and copyright information you configure in the "Global Feature Settings" backstage is effective for the current active site.If you create multiple sites in AnQiCMS and log in to the backends of different sites, you can set unique website names, copyright information, and other parameters for them separately.When calling the template,systemLabels will automatically retrieve the configuration information corresponding to the current site.

Q3: How can I set it so that the website name does not appear as a suffix in the page title?A3: When you use{% tdk with name="Title" siteName=true %}tags to generate the page title, siteName=trueThe site name will be appended to the page title. If you do not want the site name as a suffix, you cansiteNameset the attribute tofalse, that is{% tdk with name="Title" siteName=false %}. In this way, the page title will only display the title content of the current page.

Related articles

How to display the website's logo and filing information?

In the construction of a website, the website logo and filing information are indispensable components.The logo is not only a visual identifier for a brand, helping users quickly recognize and remember your website, but also the record information reflects the compliance and authority of the website, especially in mainland China, website record is the basis for legal operation.AnQi CMS as an efficient and easy-to-use content management system fully considers these core needs and provides a concise and clear way to configure and display these key information.--- ### Configure Logo and Filing Information in AnQi CMS Backend First

2025-11-07

How to implement adaptive, code adaptation, and independent template display for PC and mobile terminals in AnQiCMS?

In the era when mobile internet dominates, whether a website can provide a consistent and high-quality experience across different devices is directly related to user retention and brand image.AnQiCMS fully understands the needs of users for multi-platform experience, and therefore integrated flexible and diverse template display modes from the beginning of system design, helping users easily cope with challenges of various terminals such as PC, mobile phone, and so on.AnQiCMS provides three core template display modes, namely: adaptive mode, code adaptation mode, and independent template mode for PC and mobile terminals.These three modes have their respective focuses

2025-11-07

How to customize the overall display template of AnQi CMS?

AnQi CMS provides a flexible and powerful template customization mechanism, allowing you to create a unique website style according to your actual needs.No matter whether you want to adjust the overall layout or display personalized design for specific content, Anqi CMS can provide clear paths and rich tools to support your creativity.One of the core advantages of AnQi CMS is its template engine.It adopts syntax similar to Django and Blade, which allows those familiar with web development to get started quickly.This syntax is intuitive and easy to understand, outputting data through `{{variable}}`

2025-11-07

How to correctly display the `hreflang` tag in a multilingual site for search engine guidance?

In today's globalized digital age, multilingual support has become a basic requirement for websites to reach a wider audience.However, providing different language versions of content is not enough, we also need to ensure that search engines can correctly understand the relationships between these different versions, so that users can be directed to the content most suitable for their language and region.This is where the `hreflang` tag comes into play.For websites built using AnQiCMS, correctly configuring the `hreflang` tag is a key step in improving international SEO performance

2025-11-07

How to retrieve and display the contact information set in the background (such as phone number, email, WeChat)?

In website operation, clearly displaying contact information is crucial for enhancing user trust and promoting interaction.Whether it is to consult products, seek support, or engage in business cooperation, convenient contact channels can greatly improve conversion rates.AnQiCMS (AnQiCMS) understands this and provides flexible and powerful features, allowing you to easily obtain and display various contact information in website templates.Next, let's take a look at how to display the contact information, such as phone, email, WeChat, etc., set in the background of Anqi CMS, naturally and smoothly on your website

2025-11-07

How to configure and display SEO title, keywords, and description (TDK) on the website homepage?

In website operation, the search engine optimization (SEO) of the homepage is crucial.A well-configured SEO title, keywords, and description (TDK) can significantly improve the visibility of a website in search engine results pages (SERP), attracting more potential visitors.AnQiCMS (AnQiCMS) is a system designed for SEO-friendliness, providing an intuitive and convenient way to manage key information.This article will guide you to understand how to configure and display SEO title, keywords, and description on the homepage of your AnQiCMS website.--- ### One

2025-11-07

How to generate and display multi-level breadcrumb navigation in AnQi CMS?

In website content operation, a clear navigation path is crucial for user experience and search engine optimization.A good breadcrumb navigation can help users quickly understand the current page's position in the website structure and make it convenient for them to backtrack to the previous level or higher-level pages.AnQiCMS (AnQiCMS) fully understands this, therefore it provides a powerful and easy-to-use breadcrumb navigation feature that allows website administrators to easily generate and display multi-level breadcrumbs.The core of implementing breadcrumb navigation in Anqi CMS lies in its built-in `breadcrumb` tag

2025-11-07

How to dynamically generate and display the top or bottom navigation menu of a website?

In website operation, the top and bottom navigation menus play a vital role. They are not only guides for users to explore the website's content but also crucial for search engines to understand the website's structure.A well-designed, dynamically generated navigation menu that can greatly enhance user experience and website maintainability.AnQiCMS provides a set of intuitive and powerful features to help you easily achieve this goal.### Backend Configuration: Bring Your Menu to Life To dynamically generate and display navigation menus in AnQi CMS, you first need to configure the menu content in the backend

2025-11-07