


How to add the line number and sequence number attribute to the Dreamweaver 5.x{dede:channel} tag
The steps are as follows:
1. Modify the lib_channel function of the /include/taglib/channel.lib.php file and modify the following code
$attlist = "typeid|0,reid|0,row|100,col|1,type|son,currentstyle|,cacheid|";
Into
$attlist = "typeid|0,reid|0,row|100,col|1,type|son,currentstyle|,cacheid|,line|1";
| What follows is the default value
2. Modify the lib_channel function of the /include/taglib/channel.lib.php file and add the following code under
extract($ctag->CAttribute->Items, EXTR_SKIP);
:
$default_line = $ctag->CAttribute->Items["line"];//默认属性里设置的行数
3. Modify the lib_channel function of the /include/taglib/channel.lib.php file and change the following code
$row['sonids'] = $row['rel'] = '';
to the following code:
$row['sonids'] = $row['rel'] = ''; $row['line'] = $default_line+$i;
Recommended tutorial :dedecms tutorial
The above is the detailed content of How to add the line number and sequence number attribute to the Dreamweaver 5.x{dede:channel} tag. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Dreamweaver CS6
Visual web development tools

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

SublimeText3 Chinese version
Chinese version, very easy to use

Atom editor mac version download
The most popular open source editor