I have a new D7 site where each page has a unique header image. I figured I would use CCK Blocks and then add an image field to Page nodes so then the owners can easily upload a file on each page and it will appear as their header image. But what about Views? Is there an easy way to do this? I see this http://drupal.org/node/1266036 is about adding a field to a View, which is an Entity, but I'm not sure the outcome of that issue. There is this guy http://treehouseagency.com/blog/neil-hastings/2011/09/21/building-custom-blo... makes Blocks into Entities, which would allow me, I think, to add an image field to a block, then the owners could upload an image there -- one block for each View. Seems making blocks into entities is still in discussion for D8 here http://drupal.org/node/430886 Anyhow, is there a good way to allow the users to upload images for the header for their View pages? Thanks.
http://drupal.org/project/headerimage - there is a D7 version in the issue queue. Nancy Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
________________________________ From: Fred Jones
I have a new D7 site where each page has a unique header image. I figured I would use CCK Blocks and then add an image field to Page nodes so then the owners can easily upload a file on each page and it will appear as their header image.
I don't see how this is much different than CCK Block. Given that I anyway want one image per page, CCK Block I think is perfect. What I lack is a way to do this for Views, and I don't see how this Header Image module does that. Maybe I am missing something? Thanks, Fred On Mon, Jan 9, 2012 at 9:28 PM, Ms. Nancy Wichmann <nan_wich@bellsouth.net>wrote:
http://drupal.org/project/headerimage - there is a D7 version in the issue queue.
*Nancy*
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
------------------------------ *From:* Fred Jones
I have a new D7 site where each page has a unique header image. I figured I would use CCK Blocks and then add an image field to Page nodes so then the owners can easily upload a file on each page and it will appear as their header image.
Header Image module is not suitable for this case. The main reason is your requirement of "each page has a unique header image". Header Image can display content in a block, but does not scale well with this use case. It is build for a use case for, lets say, 5 - 20 images in a whole site. To use CCK blocks combined with a View, build the page with a node, display the view in a block in a region below content. Erik Stielstra On 9 jan 2012, at 20:39, Fred Jones wrote:
I don't see how this is much different than CCK Block. Given that I anyway want one image per page, CCK Block I think is perfect.
What I lack is a way to do this for Views, and I don't see how this Header Image module does that. Maybe I am missing something?
Thanks, Fred
On Mon, Jan 9, 2012 at 9:28 PM, Ms. Nancy Wichmann <nan_wich@bellsouth.net> wrote: http://drupal.org/project/headerimage - there is a D7 version in the issue queue.
Nancy
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
From: Fred Jones
I have a new D7 site where each page has a unique header image. I figured I would use CCK Blocks and then add an image field to Page nodes so then the owners can easily upload a file on each page and it will appear as their header image.
To use CCK blocks combined with a View, build the page with a node, display the view in a block in a region below content.
Interesting idea--basically have the node have no content, just a placeholder for the View. Sounds odd, but I suppose it would work. :) Fred
You can also use hook_views_pre_render or any other hook and add data or image in $view->attachment_before, this would render the image above the main view. On Tue, Jan 10, 2012 at 3:57 AM, Fred Jones <fredthejonester@gmail.com>wrote:
To use CCK blocks combined with a View, build the page with a node, display the view in a block in a region below content.
Interesting idea--basically have the node have no content, just a placeholder for the View. Sounds odd, but I suppose it would work. :)
Fred
-- Regards, Vaibhav Jain
participants (4)
-
Erik Stielstra -
Fred Jones -
Ms. Nancy Wichmann -
Vaibhav Jain