Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of displaying column name in Dream Weaving cms Atlas

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article is about how to display the name of the column in the cms atlas of weaving dreams. 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 cms atlas {how does dede:field name='imgurls' display the column name?

He wants to display the column name on the alt of the picture. By default, there is no such label.

The default tag of dream atlas is mainly a [field:alttext /] a [field:imgsrc/].

The atlas tag uses this {dede:field name='imgurls', so how to add the column name to the picture alt?

Open the / include/taglib/channel/img.lib.php file and find about 79 lines

These three areas have been revised. I put three pieces of code at the bottom.

$row = $refObj- > dsql- > GetOne ("SELECT t2.title as title, (select t1.typename from dede_arctype as T1 where t1.id=t2.typeid) as typename FROM dede_archives as T2 WHERE t2.id ='$aid';"); $typename = $row ['typename']; $fields [' typename'] = $typename

Then it perfectly solves the problem that the dream atlas wants to display the column name, just add [field:typename/] to alt.

Thank you for reading! On the weaving dream cms atlas display column name sharing method 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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report