English 中文(简体)
Drupal - Code work in page. tpl.php,但在一旁打赢工作
原标题:Drupal - code works in page.tpl.php but wont work in a block

下面的法典在我的网页上课以罚款。 tpl.php,但我不得不把它放在一个部分:

<?php if (function_exists( twitter_pull_render )) { print twitter_pull_render( @ahmednuaman , $title = NULL, $num_items = 5); } ?>

Ive尝试了充分的html和php投入格式。 Ive试图拆除开放和关闭的营地。 Ive试图冲销我的所有输入过滤器。

Anyone have any ideas why this isn t working? I havn t tried putting php in a block before so I might be doing it wrong. Thanks

最佳回答

选用了实验室投入模块,但实验室投入过滤器仍显示是选用的。

问题回答

暂无回答




相关问题
Are Drupal theme settings cached?

i want to change theme_username, a core theme function that outputs that dreadful "not verified" string on users who are not logged in (when they comment, for example). i want a checkbox in admin/...

Count rows in Drupal views plugin

I ve written myself a Drupal Views row plugin and I want to count the rows so I can do something with the output every Nth row. I can do this in the plugin s preprocessor function but if it gets ...

How do you separate the template of a blog block in Drupal?

In Drupal, I created a block using views. This block contains the latest blog entries. I ve placed this on a specific page to display it as an archive. Now, as for the blog itself (for example when ...

How to theme a view in drupal

Can any one help me out on how to theme a view. For each view created i want to have different templates.

热门标签