首页 » drupal学习
Drupal中根据内容类型选择模板

Drupal中根据内容类型选择模板

Date:2009-11-17Author:低调的得瑟Category:drupal学习Comment:0

制作drupal主题时,风格我们可以通过在template.php中覆写函数实现,我们还可以通过判断内容模型来让系统自动选择相应模板,内容来源于http://drupaluser.cn <?php if($node->type == ‘page’  && arg(2) != ‘ed...

Continue
Drupal主题默认路径

Drupal主题默认路径

Date:2009-11-17Author:低调的得瑟Category:drupal学习Comment:0

很多时候我们不想使用Drupal提供的默认css加载方法:$styly ,或者也不想在info中定义css路径,那么我们可以使用: <?php print base_path().path_to_theme();?> 来表示当前主题的路径。

Continue