Destoon implementation of information information before calling it the classification of the method _php instance

Source: Internet
Author: User

Sometimes we need to add in front of some information he belongs to the classification, let him show, although some of the methods introduced in this article are not universal, but can achieve this effect, the code is as follows, for your reference:

<!--{php $tags =tag ("moduleid=21&condition=status=3 and CatID in" ( 263,264,249,327,11,598,599,12,238,237,265,285,328,567,570) and level=6&showcat=1&areaid= $cityid & Pagesize=11&length=38&datetype=2&target=_blank&order=addtime desc&template=null ")}-->
 
 {loop $tags $i $t}         
  <li>
  <span>[{$t [catname]}]</span><a href=] {$t [linkurl]} ' rel= ' External nofollow ' {if $target} target= ' {$target} ' {/if} title= ' {$t [Alt]} ' >{$t [title]}</a> 
  </li>
      {/if}
  {/loop}

Attention:

1. This sentence in the Code CATID in (263,264,249,327,11,598,599,12,238,237,265,285,328,567,570) is the category where all information information belongs
(this ID range is more fixed, not universal, here need to fill in their own information below the category ID)

2. write Showcat=1 this.

3.{$t [catname]} This is the category name

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.