Analyze the discuz system Template

Source: Internet
Author: User
The system Template analysis of discuz is as follows.

The html width is not consistent with discuz, so it is too easy to make a custom framework.

I want to write a template directly, but I want to look for a template analysis. I don't know who has it. please give


Reply to discussion (solution)

Just like header.htm, many analyses

Based on the analysis of the original template, the list.htm view.htm is roughly equivalent to that of the portal.


However, these are the list pages of a topic.


Now, you need to analyze the template of the clock speed track, as shown in figure

News Channel (homepage) ---- social news and international news (list page) corresponding to list.htm ----- article page corresponding to view.htm

At present, however, there is no news channel. for example, the homepage needs to display the top 10 news items of social news and international news. how can this information be obtained from the template?

 
 
 
  • $value[catname]


  • For example, I wrote the result incorrectly.

    $ Cat [catid] exists, which may be due to the format

    $ Cat [catid] is not an array? You should print the loop $ cat or print_r to see it.

    $ Cat [catid] is not an array? You should print the loop $ cat or print_r to see it.

    These posts did not solve the problem.



    Now we are studying how to output data. Loop the lower-level article list on the home page

    News homepage -----------------------------------------------------------------
    |
    {Loop}

    Social news articles some international articles some articles in the XX column at the lower level
    |
    {/Loop}


    \ Template \ default \ portal \ list.htm contains a $ list, which is the article under all columns.
    Assume that the topic id of [social news articles] is 2 and that of [international articles] is 3.


    Layout of social news articles

    International article layout

    Layout of other articles

    Why do I need to bundle myself on the template and go to the controller to check the code? if it is not provided or cannot be found, write and call it by myself.

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.