The method of Weaving Dream Dedecms to get the name and Link of the column at the next level
Editor to share with you the method of Weaving Dream Dedecms to get higher-level column names and links. I hope you will gain a lot after reading this article. Let's discuss it together.
Dream weaving Dedecms how to get the upper column name and link?
Recommended study: dream weaving cms
Dream weaving Dedecms gets the column name and link at the next level.
{dede:field name='typeid' runphp='yes'} global $dsql; / * get the current column information * / $typeid = @ me; $query = "SELECT reid FROM dede_arctype where id = $typeid" $rs = $dsql- > GetOne ($query); $reid = $rs ['reid'] / / get the superior column of the column / * get the information of the superior column * / $query2 = "SELECT * FROM dede_arctype where id = $reid"; $row = $dsql- > GetOne ($query2) / * print the link information of the superior column * / $typename = $row ['typename'] $link = GetTypeUrl ($row ['typeid'], MfTypedir ($row [' typedir']), $row ['isdefault'], $row [' defaultname'], $row ['ispart'], $row [' namerule2'], $row ['moresite'], $row [' siteurl'], $row ['sitepath']); @ me = "$typename" {/ dede:field} after reading this article, I believe you have a certain understanding of Weaving Dream Dedecms to obtain a higher level of column names and links, want to know more related knowledge, welcome to follow the industry information channel, thank you for reading!