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}