Zhimeng Content Management System-how to add custom attributes

Source: Internet
Author: User

This section describes how to add a custom property, as shown in figure.

Log on to the background management system of zhimeng content management system, and click system> SQL command line tool. For details, see:

Then execute the following SQL statements respectively.

Insert into dede_arcatt (sortid, ATT, attname) values ('9', 'D', 'hot recommend ');
View code
alter table `dede_archives` modify `flag` set (‘h‘,‘c‘,‘p‘,‘f‘,‘s‘,‘j‘,‘a‘,‘b‘,‘bj‘) default NULL;
View code

If you log on to the database, you can see the following information in the dede_arcatt table:

In the table structure of the dede_archives table, the flag field contains the following information:

 

In this way, the custom attributes are basically complete. After you log on to the background management system of the zhimeng Content Management System and add a document in the channel column, you will see the newly added attributes, as shown in

The defined attributes can be called in the template. The call code is as follows:

<Ul class = "C1 ico1"> <! -- Hot recommendation --> {Dede: arclist flag = 'D' ROW = '13' titlelen = '60' orderby = 'pubdate'} <li> <a href = "[field: arcurl/] "> <font color = '# ff0000'> [field: Title/] </font> </a> </Li >{/ Dede: arclist} <! -- // Hot recommendation --> </ul>

Display Effect,

Website: www. it002.com

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.