Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to use the tag Mynews of Dream Weaving system

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

Editor to share with you the use of the dream weaving system tag Mynews, I hope you will learn a lot after reading this article, let's discuss it together!

Tag name: mynews

Function description: on-site news call tag

Scope of application: global use

Basic syntax:

{dede:mynews row='' titlelen=''/}

Related functions:

Line 2 of the file\ include\ taglib\ mynews.lib.php

Function lib_mynews ($ctag,&$refObj)

Parameter description:

The number of news in the row='1' calling station

Length of titlelen='24' news headlines

Underlying template variables:

[field:title/] [field:writer/] [field:senddate function= "strftime ('% y-%m-%d% Hlun% Mangjiaojingmei)" /] (time), [field:body/]

Examples of use:

We enter the system backend [module]-[on-site press release], and here we add 2 pieces of content according to the requirements of the page.

Next, paste the following in "template"-"Global tag Test" at the system backend:

{dede:mynews row=2} title: [field:title/] date of release: [field:senddate function= "strftime ('% y-%m-%d% Hfield:senddate function=% Macrosphere)" /] News content: [field:body/] {/ dede:mynews}

After reading this article, I believe you have a certain understanding of the use of the dream weaving system tag Mynews, want to know more related knowledge, welcome to follow the industry information channel, thank you for reading!

Tags: News label system content usage method global background title template article next function function parameter variable name finished instance bottom layer Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux NVidia vpn Huawei Redmi