Home  >  Article  >  CMS Tutorial  >  How to call hidden columns in dedecms

How to call hidden columns in dedecms

藏色散人
藏色散人Original
2019-12-09 10:16:482090browse

How to call hidden columns in dedecms

How to call hidden columns in dedecms?

The example in this article describes the method of calling hidden columns in dedecms. Share it with everyone for your reference. The specific method is as follows:

Recommended learning: 梦Weavercms

The first case code is as follows:

The code is as follows:

{dede:sql sql='Select * from dede_arctype where ishidden=1'} 
[field:typename/] | 
{/dede:sql}

This code is to call out all columns with hidden attributes, regardless of whether they are top-level or not.

The code for the second case is as follows:

The code is as follows:

{dede:type typeid='7' parent='1'} 
[field:typename/] 
{/dede:type}

This code just calls a hidden column, and the top-level hidden column is called

The above is the detailed content of How to call hidden columns in dedecms. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn