Home  >  Article  >  CMS Tutorial  >  DedeCMS Free List Features

DedeCMS Free List Features

(*-*)浩
(*-*)浩Original
2019-11-16 15:53:433418browse

DedeCMS Free List Features

The free list function has been added to DedeCMS V5.3. The free list function has been added to DedeCMS V5.3. I have used DreamWeaver Users of the program know that general website data can be called through the {dede:arclist/} tag or column data can be called through the {dede:list/} tag on the column page. (Recommended learning: dedecms tutorial)

These two calling methods have their own advantages and disadvantages. The former method of calling data is very flexible, but it cannot be called in pages. The latter can be called in pages, but the called The data is not very flexible and can only call the current column data. In order to solve this problem, DreamWeaver's free list function appeared, which solves this problem very well.

Free list: Different from tags such as arclist, the free list tag freelist can paginate the called data, so that different order lists can be generated according to custom rules by specifying templates for the free list to achieve unification. document management.

The free list can be compiled independently and will not be mixed with other templates, and will not affect the system's HTML generation and access speed.

Let’s start to understand the function of Dreamweaver free list. First, we log in to the system backend as a super administrator, click [Core]-[Channel Model]-[Free List Management] to enter the free list management interface. The Dreamweaver system provides you with a good example of free list usage by default, which is a free list named "Google SiteMap Generator".

DedeCMS Free List Features

We add a free list to learn the use of this function. On the add free list page we see the free list information shown in the picture above. We Some explanations for several options:

·Free list title: {dede:field.title/} is used to display the title in the free list page

·List HTML storage directory Storage directory used to generate HTML

{cmspath}: represents the website installation root directory

If you need to keep the same address as a certain column, you can enter the background [Core]-[Website Column Management] ], just change the file saving directory of a column to view the column

·Directory default page name: If selected, a default file with the corresponding name will be generated, and the content will be the first page of the list page

·Naming rules: Naming rules for generating free lists, which can be set according to your own requirements.

{listdir}: List HTML storage directory, customized by the user

{listid}: Free list ID, displayed in free list management

{page} : Free list paging page number

·List template: The template file of the current paging list can be specified by yourself. The default template is {style}/list_free.htm;

·Keywords and list description: {dede:field name='keywords|description'/} is used for in the template. Description

Next, let’s introduce how to make it Free list template.

The free list template is actually very simple to make. If you have made an article list page template, there will be no problems, because there are mainly the following two tags in the article list page:

{dede:list/} and {dede:pagelist}, the former mainly lists the content in the current column, and the latter is a content paging mark, but it is different in the free list template. {dede in the content list The :list/} tag is replaced by the {dede:freelist/} tag, and this {dede:freelist/} tag is different from {dede:list/} which can freely specify the underlying template (innertext). The underlying template of {dede:freelist/} The tag needs to be specified in the free list addition page (for details, see: Single-line record style within the loop (InnerText)).

Several variables that appear in the template file, such as titles, keywords, etc., have been listed above. They are used similarly to the variable tags on the content page and are written in two ways:

{ dede:field name='titile'/} or {dede.field.title}

Next, we add the list style of the page through the free list and generate the underlying template (innertext) through the wizard.

DedeCMS Free List Features

Note: The free list does not support the channel type of the independent single table model

Filter according to the wizard settings Conditions to retrieve the results the user needs.

After completion, select and update to generate HTML on the free list management page.

The above is the detailed content of DedeCMS Free List Features. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn