By parasox on
I'd like the functionality I saw at Cargoh.com where a user can create a Node (in their case a store) and upload a custom header/banner image. These banners don't just show up on their store nodes, but also on that user's related item nodes.
So Node A has an header image
And lots of Node B's that are related to Node A share this same header image.
I saw in their Drupal showcase that they developed a custom module for this functionality. I looked at the Header Image and Path Image modules, but they don't seem to be the right solutions.
Is it possible to do this without a module, just by using Views perhaps?
Any thoughts and help appreciated!
Comments
Exactly how is node A related
Exactly how is node A related to node B?
I was thinking through a node
I was thinking through a node reference field.
Also could be done by User, however I've only developed a Drupal site with a single user so far, so I'm less educated on for example user references. However this new project would have users, and I'll have to learn.
Similar to Cargoh, each user would have a main store/profile node (node a) and could add items/products (node b). Each of the nodes could be viewed individually, and some of the info from Node B's would appear on Node A as well.
I'd like to add an header image that's uploaded into an imagefield on Node A, and whenever a Node B is created it would get an auto node reference, and display the header on both Node A and all related Node B's.
your not using a shopping
you're not using a shopping module?
No, I won't be using ubercart
No, I won't be using ubercart or any other shopping module as such.
TBH the banner image is the
TBH the banner image is the least of your worries. I'd get everything else working first and then add the banner later - maybe just use the title of the node A instance in the mean time. You've got quite a few different relationships going on that will need to be managed in some way.
Good luck.
hehe you're totally right,
hehe you're totally right, I'm not trying to "get it done" right now, I'm just trying to plan, which involves thinking about things like this.
My thought is perhaps I can just load the image through a View on all the Node B's with a Node Reference argument..
Would that do the trick?
As I said I'd sort out the
As I said I'd sort out the other stuff first.
I'm trying to learn, so I
I'm trying to learn, so I think I'll think about it now.
Anyone else have any suggestions on how to accomplish this? Is this easily solved using Views or would it require a custom module?
okay I did resolve this using
okay I did resolve this using Views, quite simply actually.
I added a "node content" view, unformatted, with a node relationship on my Items pointing to the Store it's related to.
I then added the Banner field that's on my Store (Content: Header) using this Relationship, and an ImageCache preset.
And that's it!