SDCMS implements navigation based on sub-categories shown below different categories

Source: Internet
Author: User
SDCMS implementation of the sub-classification according to different categories of navigation, the Sdcms field Class_type is divided into the channel and the list of two categories, that is, we can determine whether to call classification according to the Class_type or call categories below the article
Of course, in order to create.asp in the adjustment, to parse the label class_id, and then parse if statement, so it's good

Specific content everyone is interested to see for yourself, the program is very old, there is no need to update, than its excellent program Sea went


{@sdcms: Loop field= "Id,title,classurl,allclassid, Class_type" table= "Sd_class" top= "4" where= "Followid=0" order= "id" } [@if {@class_type}=0 and {@id}={sdcms:class_id}] {sdcms:loop field= "Id,title,classurl,allclassid,class_typ E "table=" Sd_class "where=" followid={@id} "} <li><a href=" {link} "title=" {title} ">{title}</a>&l  t;/li> {/sdcms:loop} [@end if] [@if {@class_type}=1 and {@id}={sdcms:class_id}] {Sdcms:loop Field= "Id,title,classurl,allclassid,class_type" table= "Sd_class" where= "followid={@id}"} <li><a href= " {link} ' title= ' {title} ' >{title}</a></li> {/sdcms:loop} [@end if] [@if {@class_type}=1 and {@id}={sdcms:class_id}] {sdcms:loop field= "Id,title,adddate,classid,isurl,classurl,htmlname,style" table= "View_ Info "where=" classid={@id} and Ispass=1 "} <li><a href=" {link} "title=" {title} ">{title}</a></li&
     Gt 
{/sdcms:loop} [@end If] {/@sdcms: loop}
 


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.