dsdt66064367 2011-09-06 13:05
浏览 15

Drupal视图模板

I have a CMS system using Drupal 6 with a Template.tpl file which redirects each node to a customized template page. For example, the "about us" page node is directed to aboutus.tpl.php page:

if(arg(0) == 'node' && arg(1) == '1' && arg(2) == '')
{
     $vars['template_file'] = 'about';
}

Now, if I create a view on the back end, I try to make a customized page. Because the view is not a single node; what should I write that will display the view value on my customized design? Right now it is displaying on the CMS back end design only.

Thanks!

  • 写回答

1条回答 默认 最新

  • dsc6517 2011-09-06 14:39
    关注

    There are lots of websites which will help you override a Views template file. Here are a few to get you started:

    http://drupal.org/node/394994 <-- see also resources listed at the bottom of this page http://www.group42.ca/theming_views_2_the_basics

    评论

报告相同问题?

悬赏问题

  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么