Get the App
SLTechnology News&Howtos  ›  Servers  › 

The usage of Dream Weaving DedeCMS [field:highlight/] tag

Shulou Source: shulou.com Published: 2022-06-02 03:37:21 10月01日 Update

This article is about how to use the DedeCMS [field:highlight/] tag of dream weaving. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.

Dream weaving DedeCMS [field:highlight/] tag how to use?

We will encounter [field:highlight/] tags when making Tag tag templates.

{dede:tag row='60' sort='new'} [field:tag /] {/ dede:tag}

This is a random label style.

V5.7 officially released only 2 styles, and now we can change them to any one.

Step 1: first find\ templets\ default\ style\ page.css

Find line 905 inside. Tagc1

Add your own style at the end, such as: .tagc2 .tagc3. Tagc4. Equal style / (pay attention to continuous increment)

Step 2: find include\ taglib\ tag.lib.php

Line 99:

$row ['highlight'] = mt_rand (1pm 2)

If you add .tagc10 to the style, change it to:

$row ['highlight'] = mt_rand (1pm 10)

Save, test successful

Thank you for reading! On the use of dream weaving DedeCMS [field:highlight/] tag to share here, I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.

Tags: Tags styles usage methods content more good practical successful official article template look knowledge article this is China plus production reference help Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Shulou Tech Info macOS Microsoft Shulou Technology