Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall
At present in the domestic relatively popular several open source program has the Imperial CMS, the Dream-weaving CMS, WordPress and so on, these to build the station and do SEO optimization webmaster must be not unfamiliar, generally have in the home page or call the latest or random article of the hobby, if these articles are the same open source program, That's easier than calling. What if it's not the same? Let me talk about the Imperial CMS call WordPress Blog The latest or random article method, only for your reference.
1, the Imperial CMS in the information call tag is more commonly used is (Ecmsinfo), the following figure, is the ECMSINFO call tag format, mainly column/topic ID and Template ID these two parameters, operating system default ID is 24.
For example: [Ecmsinfo]10,5,36,1,24,20,0[/ecmsinfo]
"10" indicates the ID of the corresponding column identified in the "Management Section"
"20" indicates the label template ID in the Manage label template
The whole code means that the title of the 5 article is called in the column ID (10) According to the rule of the label template ID (20), and the column name and picture are not displayed before the title of the article being invoked.
2, according to the above example, the Imperial cms call wordpress blog Random article tags are as follows:
Description: "The Select Post_title as title,id as ID from wp_posts ORDER by rand () DESC LIMIT 5" represents a field command for a database that invokes a WordPress blog with an SQL statement.
(1) post_title corresponds to the WordPress blog article title.
(2) The ID corresponds to the title ordinal.
(3) wp_posts is storing WordPress article 6184.html "> datasheet, if the Imperial cms and WordPress blog is different database, then, the above" wp_posts "to" blog database name. Wp_posts ". Because it is the URL of the WordPress blog to call the address, so be sure to customize a separate label template. Enter the Empire CMS backstage "template Management"---"Manage tag template"---"Add template" as shown below:
Template name, casually write a convenient memory name, such as "homepage call wordpress blog Article template"
(4) Enter the following code in the page template content
[!--empirenews.listtemp--]
<!--list.var1-->
[!--empirenews.listtemp--]
(5) List content template List.var entered as follows:
<li class= "no[!--no.num--]" >
<a href= "/blog/?p=[!--id]" target= "_blank" title= "[!--title--]" >
[!--title--]
</a>
</li>
Description, the WordPress relative address is/blog/?p=*, then use/blog/?p=[!--ID] pseudo static address blog/*.html, is/blog/[!--id--].html (* representative number) of course, The absolute address is better. Other URL addresses can be analogy. Then click "Save Template", corresponding to the following figure, 29 is the ID of the label template.
(6) The Code by RAND () desc represents a random sort, and if the latest article is invoked, then the ORDER by id DESC
(7) "LIMT 5" This means that the number of 5 articles called, if this is 5, the first number must be the same as 5 (see the Ecmsinfo label)
OK, then put the ecmsinfo tag code into some of the Empire CMS templates you want to call OK, and finally attach the effect chart:
WordPress Blog article:
Empire cms call WordPress blog Random article:
This article by the misty original, URL http://www.timken114.cn, if need to reprint please specify the source, thank you!