As an experienced security CMS website operations personnel, I am well aware of the core position of content in website operations.The document recommendation feature provided by AnQi CMS is a powerful tool for efficient management and optimization of content, accurate user engagement, and thus enhancing the performance of the website.These properties are not only tags for content classification, but also the key to guiding the front-end content display and optimizing user experience.
The essence and importance of content recommendation attributes
In the AnQi CMS, content recommendation attributes (H, C, F, A, S, P, J) are special identifiers assigned to documents, which allow operators to classify and prioritize content more finely.These properties are intended to help us place different content into specific areas of the website's front page or present it in a particular visual style to meet the needs of website design and operational strategies.For example, an important news article may need to be displayed as a 'top story', while a product case may be marked as a 'slide' in the homepage carousel.The role of these properties is not to directly define the style of the content, but to provide a logical filtering condition so that the front-end template can select and organize the content based on these identifiers.
Application of recommendation attributes in backend management
In the background content management interface of AnQi CMS, when we create or edit a document, we will see the option 'Recommended Properties'. Here is a list of all available property tags:
- Headline [h]
- Recommend [c]
- Slideshow [f]
- [en] Recommended [a]
- [en] Scroll [s]
- [en] Image [p]
- [en] Jump [j]
The operator can select one or more attributes for the document based on the characteristics of the content and the promotion requirements.For example, for the latest important information, we can check both 'Top News [h]' and 'Recommend [c]' at the same time; while for an advertisement that requires users to click and jump to an external page, it may only select 'Jump [j}'.It is worth noting that although multiple recommended attributes can be set in the document, when calling the front-end template, a content list area usually filters by a single attribute, such as "Display headline article list" or "Display recommended article list.
The profound impact presented by the front-end display
The impact of recommended properties on front-end display is reflected in the organization of content and visual guidance for users. They are the basis for content filtering and layout in front-end templates.
Headline [h]:Content marked as “Top News” usually represents the most important and most concerned information on the website.In the front-end, such content often occupies the most prominent position on the homepage, such as the top large image of the page, the eye-catching title area, or highlighted with large font size and special color, aiming to capture the visitor's attention at the first time.It guides users to focus on the key events or core products of the current website.
Recommend [c]This is the most common recommended attribute, used to mark important content.In the frontend, this content may appear in the "Hot RecommendationsThey are usually presented in the form of small cards, text links, or thumbnail + title, aiming to increase content exposure and guide users to explore more related or high-quality content.
Slideshow [f]This property is designed specifically for Carousel or Slider.Content marked as "slideshow" usually includes high-quality images as covers and is displayed at the top of the homepage or specific category pages in the form of dynamic carousels.It attracts users with visual impact and provides an efficient space to display multiple important promotional messages or content.
[en] Recommended [a]:Similar to 'Recommended [c]', but 'Special Recommended' usually means higher priority or more unique recommendation value.The front-end may allocate a more prominent display area for "Special Recommendations" content compared to ordinary "Recommendations", such as listing them separately in a specific section or using more attractive layouts and styles to emphasize their uniqueness.
[en] Scroll [s]This property is commonly used in news ticker, real-time message scroll bar, or bulletin board.Content marked as "scrolling" is typically presented horizontally or vertically on the front end. The content is concise and robust, aiming to quickly convey updates, urgent or ongoing information without occupying a large amount of page space.
[en] Image [p]When the content is mainly visual elements, the 'image' attribute will be used.This indicates that the content is suitable for highlighting its image in an image gallery, a list with pictures, or a product display block.The front-end template will focus more on displaying its thumbnails or multiple image groups when calling this kind of content, rather than pure text description, to enhance visual appeal.
[en] Jump [j]:As the name suggests, the 'jump' attribute is used to mark content that should directly jump to another page or external link when clicked.This content usually does not require too much text or image details, but is an entry point to guide users to take action (such as "Click to buyThe front-end can display it as a simple button, link, or an entry with a brief description.
Template implementation
In the template files of the Aanqi CMS, frontend developers will usearchiveListtags, combined withflagParameters can be used to call documents with specific recommended properties. For example, to display all articles marked as '幻灯' in a region, the template code might be something like:
{% archiveList archives with type="list" flag="f" limit="5" %}
{% for item in archives %}
<div class="carousel-item">
<img src="{{item.Logo}}" alt="{{item.Title}}">
<h3><a href="{{item.Link}}">{{item.Title}}</a></h3>
</div>
{% endfor %}
{% endarchiveList %}
This code tells the AIT CMS to query all documents with theThe specific styles and animation effects are determined by the CSS and JavaScript code on the front end.
By flexibly utilizing these recommended properties, website operators can better organize content, enhance the browsing experience of users on the website, and effectively guide traffic and user behavior according to operational goals.
Common Questions and Answers (FAQ)
1. Have I set both 'Top News [h]' and 'Recommend [c]' attributes for an article, will they both display in the top news area and the recommendation area?
Yes, if your front-end template has been set to callflag="h"andflag="c"The list area, if this content appears in both areas. Recommended properties are tags on different dimensions of the content, which are not mutually exclusive.
2. Why does the front-end page not change after I set the recommendation attribute?
Recommended properties need to be called by the front-end template to take effect. If there is no change on the front end, there may be the following reasons: one is that your template has not written the corresponding code to call the content of these properties; the other is that the calling method in the template is incorrect (for exampleflagThe parameter is not set or set incorrectly); the third is that there may be a cache, try refreshing the page after clearing the cache.
3. What is the difference between the [p] attribute of the image and inserting an image in the article?
“Image[p]” is a recommended attribute, which tells the front-end template that this content is suitable for display with images at the core, for example, in an image list or gallery. It is a type of contentDisplay Type Preference.The article inserts images as part of content editing, and even if the 'image[p]' attribute is not set, the content of the article itself can still contain images.Filter and Display.