CCK + imagefield + contemplate 來建photo gallery

讀到一篇老外寫的drupal 教學,如何用cck, imagefield, contemplate, views 來建立photo gallery

http://www.primalmedia.com/blog/building-better-drupal-photo-gallery#comment-34

問題是現在卡在6, 7 不知道他在說什麼(他應該簡化了,很多都沒有詳細說明)

懂英語的能否看一下.謝謝!!!

好象6、7是说他把“标

好象6、7是说他把“标题”和“图片”的判断代码加在模版中。

我之前也尝试过drupal6.x的组合,可以实现,不需要contemplate

########## AD ################
http://www.petkk.com

最近新开的drupal6.x的子站,主要以学习为主,欢迎大家来交流
http://code.petkk.com

########## AD ################

主要以学习为主,欢迎大家来交流
http://playts.com

這部分解決了 不過這

這部分解決了
不過這裡不太了解

After you have created your gallery page you may want to make a landing page which links to all your super cool galleries. Check this out.

In Contemplate, create a teaser view that takes the first image and the page title. It might read something like this:

<a href="/<?php print drupal_get_path_alias("node/$node->nid"); ?>" title="<?php print check_plain($node->title) ?>"><?php print $node->field_gallery[0]['view'] ?><p><?php print check_plain($node->title) ?></p></a>.

句中的Contemplate 是指那個content type 的contemplate ???

說的landing page 是page node type ????或其他什麼

我估計是gallery idea

我估計是gallery

idea 是, 一個node 有24個image fields
然後用views 的teaser列出nodes, teaser 顯示的時候只顯示一個node 的一個field

--------------------------------
Joetsui's blog

--------------------------------
Joetsui's blog

即是在剛建立新content

終於搞好了~~~~~~~~~~~~~

cck+imagefield+contemplate+views 成功了!!!!!!!!~~~~~~~~~~~

足足花了一整天來研究.................樂奔~~~~~~~~~~~~

不過話說如果在drupal 6 搞,是有不同的
比如 contemplate 顯是的variables 就沒有什麼....... ['view'] 這個array index

$node->field_gallery[0]['view']