CCK字段过滤器修改[2]

终于搞定用CCK + imagefield + imageapi + imagecache实现摘要(teaser)部分只显示第一张图片,而在全文(page)部分显示所有上传的图片,但是新的问题又来了,我在使用views查询,可是无论怎么设置都不能实现查询每篇文章的第一张图片,非常郁闷。

无奈啊,还要另找方案
1.建立2个Image字段,1个用于显示图片文章,在上传数量中设置1 ,既用views查询每篇文章的缩略图,第2个用于全文的图片,可以在上传数量中设置无限

2.建立1个Image字段,在上传数量中设置1 ,既用views查询每篇文章的缩略图,文章中的图片通过附件插入

评论

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许HTML标签:<a> <img> <em> <del> <strong> <cite> <code> <pre> <ul> <ol> <li> <dl> <dt> <dd> <h3> <h4> <h5> <h6>
  • 自动断行和分段。
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo]. PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.