Eyoucms website building TAGs how to call the tag
when i have time, i sorted out some targeting TAG the syntax of tag calls is helpful to everyone:
{eyou:tag sort='now' getall='0' row='100'}
<a href='{$field.link}'>{$field.tag}</a>
{/eyou:tag}
description of each parameter:
aid='' document ID, this property can be not set on the content page
typeid='' column ID, retrieve all the columns TAG
row='100' return to the total number of ad lists
getall='' get type, 0 is the current content page TAG tag, 1 is to get all TAG mark
sort='now' document sorting
sort='now' sort by latest
sort='rand' random sorting
sort='week' sort by weekly statistics
sort='month' sort by monthly statistics
sort='hot' sort by clicks
sort='total' sort by number of documents
style='' application style class class name
name='' variable
empty='' copywriting displayed when there is no data
mod='' every other N the content of the line output
id='' you can specify the variable name in the loop to replace it field, assumptions id='field1', template calls such as: {$field.title} become {$field1.title}
underlying fields:
the data table name is: ey_tagindex
【more examples rendering]
-------------------------------example 1 --------------------------------------
description: output the current document page TAG mark
{eyou:tag getall='0'}
<li><a href='{$field.link}'>{$field.tag}</a></li>
{/eyou:tag}
-------------------------------example 2-----------------------------------
description: output any document on any page TAG mark
{eyou:tag getall='0' aid='3'}
<a href='{$field.link}'>{$field.tag}</a>
{/eyou:tag}
-------------------------------example 3 -------------------------------------
description: output the specified column ID all below TAG mark
{eyou:tag getall='1' typeid='2' row='50' sort='hot'}
<a href='{$field.link}'>{$field.tag}</a>
{/eyou:tag}
-------------------------------example 5-------------------------------------
description: built-in variable output data index and record order, key indicates index, default starts from 0; i indicates the order, the default starts from 1.
{eyou:tag getall='1' typeid='3' row='5'}
{$key} - {$i}
{/eyou:tag}
effect:
0 - 1
1 - 2
2 - 3
3 - 4
4 - 5
-------------------------------example 6-------------------------------------
description: output copy prompt when there is no record, attribute empty support direct incoming html grammar( html only double quotes are supported, single quotes are prohibited)
{eyou:tag getall='1' typeid='3' empty='no data for the time being' }
<a href='{$field.link}'>{$field.tag}</a>
{/eyou:tag}
-------------------------------example 7-----------------------------------
description: custom variable name
{eyou:tag getall='1' typeid='3' id='field2'}
<a href='{$field2.link}'>{$field2.tag}</a>
{/eyou:tag}
-------------------------------example 8-------------------------------------
description: first tag tags highlighted
{eyou:tag getall='0' row='5'}
<a class='gaoliang{$i}' href='{$field.link}'>{$field.tag}</a>
{/eyou:tag}
.gaoliang1(background:#cc0000)//the background color is red
according to the above tag call method, you can call whatever effect you want ok it's

the above is shared by suyou.com with everyone." Eyoucms website building TAGs how to call the tag", thank you very much for your patience to read this article. we will provide you with more information on reference or learning communication. we can also provide you with:enterprise website construction, website imitation, website copying, imitation site, foreign trade website construction, foreign trade website construction, company official website productionfor services, our company serves customers with the service concept of "integrity, professionalism, pragmatism and innovation". if you need cooperation, please scan the code to consult, and we will serve you sincerely.
TAG label:yiyou cms