JEECMS website content page, get a fixed level two column

Source: Internet
Author: User

In the backstage of Jeecms website, the column is divided into three kinds of situations:

1. First level column--〉 two level column

2. First level column--〉 two level column--〉 three level column

3. First level column--〉 two level column--〉 three level column--〉 four level column

These columns are used in different column templates, the common feature is that the left-hand list shows a list of two-level column names.

Regarding the content page, also has this request, now is needs to display the two Level column list on the left side, all the page common one template. If you get the first-level column ID of the current column

${channel.nodelist[0].id} is the ID of the first level column where the current column is obtained.

[@cms_channel_list Parentid=channel.nodelist[0].id]
[#list tag_list as CHNL]
<li>
<a class= "on" href= "${chnl.url}" >${chnl.name}</a>
</li>
[/#list]
[/@cms_channel_list]

This will read to level two.

JEECMS website content page, get a fixed level two column

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.