Destoon implements the method of calling text and text news, destoon text and text

Source: Internet
Author: User

Destoon implements the method of calling text and text news, destoon text and text

This example shows how destoon calls text and text news. This function is very common and practical. Share it with you for your reference. The specific implementation method is as follows:

The main function code is as follows:

{If $ DT [page_news]} <! -- {Tag ("moduleid = 21 & length = 16 & condition = status = 3 and level = 3 and thumb <>'' & pagesize = 1 & target = _ blank & order = addtime desc & width = 100 & height = 80 & cols = 1 & template = thumb-table ")} --> {/if} <! -- {Php $ tags = tag ("moduleid = 7 & condition = status = 3 and thumb! = ''& Length = 30 and level> 0 & areaid = $ cityid & pagesize = 1 & datetype = 2 & order = addtime desc & target = _ blank & template = null ") ;} --> {loop $ tags $ I $ t} <a href = "{$ t [linkurl]}" rel = "external nofollow" target = "_ blank"> <span>  </span> <strong> {$ t [title] }</strong> <small> {dsubstr ($ t [introduce], 76 )}... <em> [Details] </em> </small> </a> {/loop} </div>

I hope this method will be helpful for destoon development.


How does destoon B2B call Picture News with introduction on the homepage?

Set picture news to headlines
Reset the level6 name
Then level = 6
<! -- {Tag ("moduleid = 21 & condition = status = 3 and level = 6 & areaid = $ cityid & order = addtime desc & pagesize = 1 & target = _ blank & template = list-tuwen ")} -->
Create a template with images named list-tuwen.

How does destoon call the "ad image + AD name" mode?

{Ad (26)} <! -- {Php $ tags = tag ("table = ad & condition = pid = 26 & template = null ");} --> {loop $ tags $ t} <li> <a title = "{$ t [title]}" href = '{$ t [linkurl]}' target = "_ blank ">{$ t [title] }</a> </li >{/ 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.