Drupal 7 开发内部培训资料, 分头诗人

Zen主题下如何覆写元素主题

赞成!
0
否决!

安装里zen主题,然后自己定义了一个名叫test的基于zen的子主题

我在test下的test.info文件中定义了一个region

region[block_1] = Block 1

1.问题:如果单从覆写的角度讲,这个元素是可以覆写的吗?,

如果可以的话,是不是应该是这个样子的?在template.php中:

function block_1_theme(){

     return array(

            'template' => 'test',

           'variable' => array('test',null),

       );

}

然后创建test.tpl.php文件,在里面写上希望输出的内容。

 

自学drupal,感觉这个东西时而明白事儿迷糊,求高人指出我的理解是否有误

2 个回答

赞成!
0
否决!

test.tpl.php 是不支持的, 你看看zen 的教程,不是这么用的,drupal 不能乱起模板名,要用模板建议,请查看

Drupal 7 模板改写建议

赞成!
0
否决!

锘緼n incredible number of make somewhere your house love to understand to preach a fresh language, but also in attendance are two focal barriers after you are looking for learning some other language. The number one fad is result an approach with all the purpose of moving parts fast. Numerous programs not in your house attending take years to get into a close, plainly! Veto individual has generation to expend hours for each daylight hours irritating to understand a fresh language, we're all in demand with job, our youngsters and hardly life involved in universal.

Rocket Spanish


Reflecting through all Spanish Language learning resources I've bought before, Rocket Spanish simply takes the trophy. It can be great fun learning to speak Spanish.



The specific Skyrocket Speaking spanish bundle is in all likelihood the foremost intuitive device to understand " real spanish " without headaches. It's one-of-its-kind Speaking spanish knowing tool that's invented simply by Mauricio Evlampieff. She assures this anyone taking into consideration the deal could connect Spanish language around couple months flat! As everyone knows this Real spanish is definitely an incredible vocabulary along with the expressions lots of people need to learn. Never that it has to be of enterprise skilled dallas pest control however , Real spanish possesses this kind of specific 'pull-effect' to alone ones nothing else words codes.

Other applications that permit a little a lot more versatility include the truly amazing Rocket Spanish application designed by the Chilean, Mauricio Evlampieff. Mauricio found, to his disappointment, that many formal secondary school and higher education Spanish programs, as well as numerous in the self examine courses, taught an outdated academic type of Spanish, not the Spanish spoken by native speakers today.

A similar teaching method applies for rocket spanish language course. It is made with the sole objective at heart - how you can learn practical conversational Spanish naturally and simple, not wasting time on unnecessary and complicated things.

Rocket Spanish is just about the leading Spanish learning software on the internet. Rocket Spanish has proven itself being the top piece of software that has been designed to profit the people who are really wondering Spanish. Rocket Spanish is a complete course that includes the easy techniques that are very easy to be aware of and not the textbook language. It is extremely definately not overblown grammar rules or perhaps the meaningless words who have no use.

So whether you're brushing on some Spanish you've nearly forgotten or need to find out a whole new language for better job prospects, the very best Spanish course is one that offers you flexibility and quality.

The Rocket Spanish motivation center features a great deal of articles on areas like building your self-confidence in Spanish, designing your own Spanish-learning plan, memory games, and understanding how to benefit from the language, while the online forum permits you to speak to other enrollees.