Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
创建模板文件时,什么时候最好创建视图块模板而不是常规块模板?
具体来说: block--views--{view's machine_name}-block.tpl.php VS。 块--myblock.tpl.php
据我了解,视图块模板是使用视图生成的特定块。您永远不会使用视图块模板来控制普通块。普通块模板将用于控制普通块(从Structure > Blocks > Add block控制面板生成的块)的输出。
Structure > Blocks > Add block