Home>Article>CMS Tutorial> How to call the top-level columns and the secondary columns below in DreamWeaver
How does Dreamweaver call the top-level column and the secondary columns below?
Dreamweaver calls the top-level column and the following Second-level columns
Recommended learning:梦Weavercms
Sometimes it is necessary to call the top-level columns and the secondary columns below, such as when making a drop-down menu. The simplest way to call the secondary column:
{dede:channelartlist typeid='top'}
Sometimes when you need to make styles, you need to add different css to a certain tag in dede:channelartlist, such as the following example:
{dede:channelartlist typeid='top'}
{dede:global name='itemindex'/} is automatically incremented every time the top column is called.
For a more complex way to call the secondary column, use the dede:php tag, as in the following example:
Although this method is more complex, it is also more flexible.
The above is the detailed content of How to call the top-level columns and the secondary columns below in DreamWeaver. For more information, please follow other related articles on the PHP Chinese website!