我正在努力重新设计一个我需要编辑每个页面的输出的现有站点（即每个URL）。有没有好方法来确定数据来自哪里？ "我的意思是" 在哪里"，这是一个" 观点"？或来自模块？或块组合？
I am working on re-designing an existing site for which I need to edit the output of each page (i.e. each URL). Is there a good way to determine where the data is coming from? By "where" I mean, is it a 'View'? or from a module? or combination of blocks?
I have tried devel & theme developer but that only tells me which tpl.php file but not the actual source.
If you are comfortable looking through your database directly, the quickest way to find out where
$content is coming from is to look at the
menu_router table and reference the
page_callback fields. For example, path
node is generated (normally) by
node_page_default and it creates the default front page. Looking through this table you can see where all the other paths on your system are referenced.
As for where all the other content comes from, eg, all the blocks in other regions of the page, there you have to look around through the
blocks table and look at the various information there, eg,
delta say which module creates the block and which one it is,
region says where on the page it will be put, and
pages have any restrictions as to what pages the core block module knows about.