我使用jCarousel构建了显示在块中的幻灯片。内容类型具有图像上传域和这些图像将要在转盘显示量。我想,每一个节点在传送带上不同的图像。在Views中,我通过Type定义了过滤器。但是,这需要来自每个节点的所有图像。我该如何解决这个问题?使用jCarousel模块构建幻灯片
0
A
回答
0
您想通过该页面上传到特定网页上的图像?
如果是这样,你可以使用节点:NID参数。
在“采取的措施,如果参数不存在:”
检查“提供默认参数”
然后“节点从URL ID”
0
下面是有关的template.php评论更多信息:
在page.tpl.php中添加
<body class="<?php print $body_classes; ?>">
in template.php,add
function phptemplate_preprocess_page(&$vars, $hook) {
// Classes for body element. Allows advanced theming based on context
// (home page, node of certain type, etc.)
$body_classes = array($vars['body_classes']);
if (!$vars['is_front']) {
// Add unique classes for each page and website section
$path = drupal_get_path_alias($_GET['q']);
list($section,) = explode('/', $path, 2);
$body_classes[] = phptemplate_id_safe('page-' . $path);
$body_classes[] = phptemplate_id_safe('section-' . $section);
if (arg(0) == 'node') {
if (arg(1) == 'add') {
if ($section == 'node') {
array_pop($body_classes); // Remove 'section-node'
}
$body_classes[] = 'node-add'; // Add 'node-add'
}
elseif (is_numeric(arg(1)) && (arg(2) == 'edit' || arg(2) == 'delete')) {
if ($section == 'node') {
array_pop($body_classes); // Remove 'section-node'
}
$body_classes[] = 'node-' . arg(2); // Add 'node-edit' or 'node-delete'
}
}
}
$vars['body_classes'] = implode(' ', $body_classes); // Concatenate with spaces
}
function phptemplate_id_safe($string) {
if (is_numeric($string{0})) {
// If the first character is numeric, add 'n' in front
$string = 'n'. $string;
}
return strtolower(preg_replace('/[^a-zA-Z0-9_-]+/', '-', $string));
}
相关问题
- 1. 构建幻灯片
- 2. 构建...幻灯片
- 3. 使用模板创建具有R的幻灯片幻灯片
- 4. drupal的幻灯片模块
- 5. JCarousel:所有幻灯片后11环绕
- 6. Jquery Cycle + Jcarousel幻灯片thumbs not loading?
- 7. 将幻灯片添加到jcarousel滚轮?
- 8. 在Java Swing中构建Jpeg幻灯片
- 9. 滑块每张幻灯片
- 10. Div滑块幻灯片?
- 11. 幻灯片的jQuery滑块
- 12. 使用ImageViewe创建幻灯片 - Android
- 13. 使用jQuery创建幻灯片放映
- 14. 为滑动创建幻灯片模板
- 15. 使用全屏视图作为幻灯片的WPF幻灯片
- 16. 点击跳过幻灯片幻灯片
- 17. 放映幻灯片内幻灯片
- 18. c动画幻灯片幻灯片#
- 19. Google IO幻灯片模板 - 每张幻灯片上的Javascript
- 20. 幻灯片使用jquery
- 21. 使用Backbone.Router幻灯片
- 22. 使用jQuery幻灯片
- 23. Twitter Bootstrap模态幻灯片
- 24. 创建一个幻灯片
- 25. 创建幻灯片图像
- 26. 创建Flash幻灯片c#
- 27. 照片幻灯片
- 28. Horisontally扩展jCarousel Lite旋转木马幻灯片剧本动态
- 29. 麻烦定心活动的幻灯片中的jCarousel
- 30. 使用jquery制作照片幻灯片
非常感谢!这解决了我的问题。 :) 还有一件事。我如何分别设置幻灯片样式。例如,在一个类型的页面我需要的幻灯片是960像素宽,另一种类型的600px的。 – eXoSaX 2011-02-03 16:32:24