search
HomeBackend DevelopmentPHP TutorialEmpire CMS ecmsinfo universal tag_PHP tutorial

Information calling tag with template: [Universal Tag](ecmsinfo)

Tag name: Information call tag with template (sys_GetEcmsInfo)

Format: [ecmsinfo] Column ID/topic ID, number of displayed items, number of title interceptions, whether to display the column name, operation type, template ID, only display pictures with titles[/ecmsinfo]

Parameter description: (The essence of empire template production, this tag achieves various display effects.)

  1. Column ID/Topic ID: Column ID or topic ID to call information, current column or topic ID='selfinfo', multiple column IDs or topic IDs can be opened with ",", such as '1,2' , if it is called by SQL statement, this is the SQL statement.
  2. Show number of records: Display the first few records.
  3. Number of title interceptions: How many characters of the title are intercepted.
  4. Whether to display the column name: 0 means not to display, 1 means to display it.
  5. Operation type: View information call operation type description for details.
  6. Label template ID: The label template ID used by this label.
  7. Only display pictures with titles: 0 means no limit, 1 means only display information about pictures with titles.

Its display effect is determined by the label template. The operation types are as follows:

 
操作类型         说明                         操作类型             说明
 
0            各栏目最新                         3            所有信息最新(默认表) 
1            各栏目热门                         4            所有信息热门(默认表) 
2            各栏目推荐                         5            所有信息推荐(默认表) 
9            各栏目评论排行                     10           所有信息评论排行(默认表) 
12           各栏目头条信息                     13           所有信息头条(默认表) 
15           各栏目下载排行                     16           所有信息下载排行(默认表) 
25           各栏目评分排行                     27           所有信息评分排行(默认表) 
26           各栏目投票排行                     28           所有信息投票排行(默认表) 
 
6            专题最新信息                       18           各表最新 (栏目ID='表名') 
7            专题热门信息                       19           各表热门 (栏目ID='表名')
8            专题推荐信息                       20           各表推荐 (栏目ID='表名')
11           专题评论排行                       21           各表评论排行 (栏目ID='表名')               
14           专题头条                           22           各表头条信息 (栏目ID='表名')
17           各专题下载排行                     23           各表下载排行 (栏目ID='表名')
29           各专题评分排行                     31           各表评分排行 (栏目ID='表名')
30           各专题投票排行                     32           各表投票排行 (栏目ID='表名')
 
24        按sql查询(栏目ID='sql语句') 数据表前缀可用:"[!db.pre!]"表示 

Example: [ecmsinfo]2,3,14,1,0,5,1[/ecmsinfo]

  1. The column ID is 2
  2. The number of items displayed is 3
  3. The title is truncated to 14 characters
  4. Whether to display the column name 1 is to display
  5. The operation type is 0
  6. The template ID is 5
  7. Only show captioned images

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/752484.htmlTechArticleInformation calling tag with template: [Universal tag] (ecmsinfo) Tag name: Information calling tag with template ( sys_GetEcmsInfo) Format: [ecmsinfo] column ID/topic ID, number of items displayed, title cutoff...
Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
What is the best way to send an email using PHP?What is the best way to send an email using PHP?May 08, 2025 am 12:21 AM

ThebestapproachforsendingemailsinPHPisusingthePHPMailerlibraryduetoitsreliability,featurerichness,andeaseofuse.PHPMailersupportsSMTP,providesdetailederrorhandling,allowssendingHTMLandplaintextemails,supportsattachments,andenhancessecurity.Foroptimalu

Best Practices for Dependency Injection in PHPBest Practices for Dependency Injection in PHPMay 08, 2025 am 12:21 AM

The reason for using Dependency Injection (DI) is that it promotes loose coupling, testability, and maintainability of the code. 1) Use constructor to inject dependencies, 2) Avoid using service locators, 3) Use dependency injection containers to manage dependencies, 4) Improve testability through injecting dependencies, 5) Avoid over-injection dependencies, 6) Consider the impact of DI on performance.

PHP performance tuning tips and tricksPHP performance tuning tips and tricksMay 08, 2025 am 12:20 AM

PHPperformancetuningiscrucialbecauseitenhancesspeedandefficiency,whicharevitalforwebapplications.1)CachingwithAPCureducesdatabaseloadandimprovesresponsetimes.2)Optimizingdatabasequeriesbyselectingnecessarycolumnsandusingindexingspeedsupdataretrieval.

PHP Email Security: Best Practices for Sending EmailsPHP Email Security: Best Practices for Sending EmailsMay 08, 2025 am 12:16 AM

ThebestpracticesforsendingemailssecurelyinPHPinclude:1)UsingsecureconfigurationswithSMTPandSTARTTLSencryption,2)Validatingandsanitizinginputstopreventinjectionattacks,3)EncryptingsensitivedatawithinemailsusingOpenSSL,4)Properlyhandlingemailheaderstoa

How do you optimize PHP applications for performance?How do you optimize PHP applications for performance?May 08, 2025 am 12:08 AM

TooptimizePHPapplicationsforperformance,usecaching,databaseoptimization,opcodecaching,andserverconfiguration.1)ImplementcachingwithAPCutoreducedatafetchtimes.2)Optimizedatabasesbyindexing,balancingreadandwriteoperations.3)EnableOPcachetoavoidrecompil

What is dependency injection in PHP?What is dependency injection in PHP?May 07, 2025 pm 03:09 PM

DependencyinjectioninPHPisadesignpatternthatenhancesflexibility,testability,andmaintainabilitybyprovidingexternaldependenciestoclasses.Itallowsforloosecoupling,easiertestingthroughmocking,andmodulardesign,butrequirescarefulstructuringtoavoidover-inje

Best PHP Performance Optimization TechniquesBest PHP Performance Optimization TechniquesMay 07, 2025 pm 03:05 PM

PHP performance optimization can be achieved through the following steps: 1) use require_once or include_once on the top of the script to reduce the number of file loads; 2) use preprocessing statements and batch processing to reduce the number of database queries; 3) configure OPcache for opcode cache; 4) enable and configure PHP-FPM optimization process management; 5) use CDN to distribute static resources; 6) use Xdebug or Blackfire for code performance analysis; 7) select efficient data structures such as arrays; 8) write modular code for optimization execution.

PHP Performance Optimization: Using Opcode CachingPHP Performance Optimization: Using Opcode CachingMay 07, 2025 pm 02:49 PM

OpcodecachingsignificantlyimprovesPHPperformancebycachingcompiledcode,reducingserverloadandresponsetimes.1)ItstorescompiledPHPcodeinmemory,bypassingparsingandcompiling.2)UseOPcachebysettingparametersinphp.ini,likememoryconsumptionandscriptlimits.3)Ad

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools