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.