The Add Document function provides powerful document addition operation functions. By adding a document interface, we can add various types of attributes to the document, such as document title, recommendation attributes, document classification, thumbnails, tag tags, etc.
The default functions on the interface for adding documents are:
- Document Title Document Title is required, and the document title is used for the h1 title that the document displays to the user.
- The recommended attributes of the recommended attribute document can specify 8 attributes, which can be selected, multiple or non-selected. After selection, the foreground template can call the specified recommended content through the specified attribute letter, flag="h". Note that when calling for the foreground, each list can only be called with one attribute.
The available tags are:头条[h]
,推荐[c]
,幻灯[f]
,特荐[a]
,滚动[s]
,加粗[h]
,图片[p]
,跳转[j]
.
- Document keywords
Document keywords can be entered manually, or the keywords in the keyword library can be selected by selecting the keyword button. Please use English between multiple keywords,
To distinguish it, because this is more in line with the habit of search engines.
- Document Introduction
- A document introduction is generally a brief introduction to an article. It is advisable to not exceed 150 words for the document introduction. When you have not filled in the document introduction, the system will automatically extract the first 150 words in the document content as the document introduction.
- Document content
- A document content editor, providing rich content editing methods. Commonly used editing buttons include: setting title/text, quotation, bold, underline, italic, strikethrough, inline code, superscript, subscript, clear format, font color, background color, font size, font, line height, ordered list, unordered list, to-do items, alignment, indentation, emoji, link, picture insert, video insert, table insert, code insert, split line insert, undo redo and other functions. In addition to commonly used edit buttons, it also supports the use of paragraph material library materials, uploaded image resources, etc.
- Category
Each document must be selected. All documents must be determined based on the classification of the type of model this document belongs to.
Therefore, after selecting the category, you can display the model field of the content model to provide input. For example, in the example, we chose the Anqi CMS template to create this category. This category belongs to the article model. At this time, we can fill in the contents of other fields of the document model in other parameters.
- Document pictures
Document pictures here refer to the thumbnail of the document. Document thumbnails can be selected by selecting pictures in the image library or uploading new pictures. If you do not upload images but contain pictures in the document content, the system will automatically extract the first image of the document content as the document thumbnail image.
- Custom URL
- Custom URLs are designed to enable pseudo-static rule calls with naming mode to the document. The custom URL will only take effect when the website pseudo-static rules use the naming mode of the field {filename}. The default custom URL will be automatically generated according to the pinyin according to the document title you entered. If you are not satisfied with the automatic generation, you can set up custom content by manually typing. It should be noted that the custom URL must be unique to the entire site. If it is not unique, the system will add a random number to make it unique.
- Release time
- The release time is automatically generated by default, and the default will be the current time at the time of release. If you need your document to be a timely release document that is automatically published at a certain time in the future, you can set the release time to the future time so that the document will be officially released after the specified release time has arrived. The format of the release time is: 2006-01-02 15:04:05
- Tag tags
- You can add multiple tags to documents. Tags are a bit similar to topics. You can associate documents of the same type through another way of association in addition to classification. You can select existing tags or add new tags by entering. When you enter a new tag text, press Enter to convert it into a tag.
- Other parameters
- For some less commonly used parameter fields, we put them in a folding basket with other parameters. You can fill in more information for the document by expanding the folding basket.
- SEO title
- SEO titles are used to display the title content to search engines. Note: If you want the content of the title tag of the page to be not the title of the article, you can set it through the SEO title.
- Specification link
- If you want to point the current document to another page, you need to fill it out here. The canonical link requires you to use the canonical tag in the template to call. This tag may be used in foreign trade websites. Please use the complete link starting with http or https, such as: /article/98
- Permalink
- Only if you want to persist and fix the link to this document and not change with the false static rules, you need to fill it in. Relative link / Beginning. For example: /download
- Document templates
- When you need to assign an independent display template to a single document, you can fill in the template name you need to use here. Note that you must ensure that the template exists in your template design package, otherwise this document will not be opened. If you create a download.html template to display this document, then fill in download.html in the input box of the document template of this document.
- More Model Custom Fields
- When you use the content model to customize more of the model's own fields, it will also be displayed in the folding basket of other parameters one by one. You can fill in the content according to specific needs.
- If the field you define has a default value and you just want to display it according to the default value, then you just need to leave it blank. When the front-end call is called, the system will automatically assign the default value to the specified field.