Provide zblog template_zblog them_wordpress template download and customization

Zblogasp calls the background calling method of an article in a column

Tianxing Studio 2014-10-21 19:25 course seven thousand and seventeen 1 Comments


The title of this article is very wordy. In fact, the meaning is as follows“ website The background can control which column is called by a block on the home page. "

To call an article in a column ytcms It is very simple to implement, but how to modify the calling column at will in the background? It's better to use the universal ytcms. First, complete code:

 <dd><h2>{$Categorys(<#TEMPLATE_INCLUDE_KID1#>).HtmlName}</h2> <ul> {YT:Article DataSource="GetArticleCategorys(6,'<#TEMPLATE_INCLUDE_KID1#>')"} <li><span>{$month (Article. PostTime)} the {$day (Article. PostTime)} day</span><a href="{$Article. Url}" target="_blank">{$Article. HtmlTitle}</a></li> {/YT:Article} </ul> </dd>

The above code can call the column title, column link, and the latest 6 articles of a column (of course, you can change it to the top 10 articles at will). We need to create a "kid1. html" file in the "INCLUDE" folder of the theme, and fill in the classification ID of any column in the file.

Under the editing of theme production plug-in, you can directly control the modification in the "theme configuration" in the background.

Once again, thanks to the great god "Yu Ting"“ YTCMS ”Plug in.


Can't find a tutorial that can solve your problem?

You can try to search or ask questions directly online. We also provide charging technical support. If you need it, you can contact us online.

Online questions Online Service

yes one Comments from netizens:

  •  Loser's Diary

    Loser's Diary 10 years ago (October 23, 2014) reply

    This is quite simple

welcome you Comment: Cancel Reply

 Please fill in the verification code
  • Latest articles
  • Hot article ranking
  • Most Comments
Label aggregation
  • Sign in
  • Registered account Forgot your password?
  • register
  • Already have an account? Direct login Forgot your password?
  • Social account login