Website Construction in the Empire CMS How to Cycle Call column sub-category

Source: Internet
Author: User

In a similar form, call a sub-category? PHP $bclassid =[!--self.classid--]; Select the ID of the current column, if you call the multi-level classification under the specified column, fill in the column ID//Get the Sub-column under this column? [E:loop={select ClassID, classname, classpath from ' [!db.pre!] Enewsclass ' where bclassid=$

Similar form, call sub-category  <?php$bclassid=[!--self.classid--];  //Select the ID of the current column, if you call the designated column under the multilevel classification, then fill out the column id//get the sub-column under this column? >[e:loop={"Select ClassID, ClassName, classpath from ' [! Db.pre!] Enewsclass ' where bclassid= ' $bclassid ' ORDER by ' classid ' desc ', 5,24,0,0,0}]<li><a href= ' <?= $class _r[$BQR [ClassID]] [' Classpath ']?> ' ><?= $class _r[$bqr [classid]][' classname ']?></a>[showclasstemp] $bqr [ClassID], 14,0,0[/showclasstemp]</li>[/e:loop] < Link: <?= $class _r[$bqr [classid]][' Classpath ']?> Sub-column ID: $BQR [classid] Note: The author creates a tag template ID equal to 14 in the background if you create an ID equal to the other, OK [showclasstemp] $bqr [classid],14,0,0[/showclasstemp] Inside the 14 change to your ID created by the Tag template code: page template Content (*)  [!--empirenews.listtemp--]<ul class= "menv" >        <!--list.var1--></ul>       [!--empirenews.listtemp--] List content template (List.var) (*) <li ><a href= "[!--classurl--]" >[!--classname--]</a></li>  so that you can achieve level two calls, more levels of our own play Oh!

How the Empire CMS in the site construction cycle calls column sub-categories

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.