The method of displaying column name in Dream Weaving cms Atlas
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.