Provide zblog template_zblog them_wordpress template download and customization

The method for zblog list page and content page to call articles in the same column

Tianxing Studio 2014-05-30 20:18 course eight thousand three hundred and fifty-two 4 Comments


zblog The list page and content page of should call articles of the same column. Many friends have consulted me about this function. In fact, this is a very simple function in other cms programs, but don't forget zblog It's just a blog program. Although zblog is a very good blog program, it can't be used as a CMS!

Then what shall I do?

Fortunately, it was developed by the Great Xia "Yu Ting"“ ytcms ”Plug in. It is really a powerful plug-in, as powerful as zblog+ytcms=a powerful cms system.

Then you must use ytcms when zblog calls articles in the same column on the list page and content page. The method is as follows:

As we all know, the code for calling classified articles with ytcms is as follows:

 {YT:Article DataSource="GetArticleCategorys(10,'7')"}

The code above means to call 10 articles in the column with category ID 7. The key point is that when you call articles in the same column in the list page, you can directly replace category ID 7 with "<# articlelist/category/id #>". The complete code is

 {YT:Article DataSource="GetArticleCategorys(10,'<#articlelist/category/id#>')"}

The complete code for zblog content page to call articles in the same column on the current page is:

 {YT:Article DataSource="GetArticleCategorys(10,'<#article/category/id#>')"}

Others can be defined by themselves, so that's OK. Well, YTCMS is strong in these areas. Friends interested in ytcms can read this article. " Reprint: Collection of YTCMS plug-in use tips of zblog - Tianxing Studio    “


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 four Comments from netizens:

  •  Sharing Park

    Sharing Park 10 years ago (2014-06-24) reply

    Why do I use YT After CMS adds a module, it is placed in the sidebar. What if there is no content displayed after the file is rebuilt?

  •  Sharing Park

    Sharing Park 10 years ago (2014-06-24) reply

    Thanks for sharing, but if there are sub categories under the category, how to display the sub category articles? I hope there will be a tutorial for beginners. Every article must be read

    •  meijie5523

      meijie5523 10 years ago (2014-06-25) reply

      The subcategory has not been tested. You can test it yourself

  •  Honey Rabbit Cat

    Honey Rabbit Cat 10 years ago (2014-05-30) reply

    To learn

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