By Johan A on
Hi folks,
I'm trying associate an image to every node so that I can list them out in block.
An example of what i'm trying to achieve is the "Past Entries" column in http://www.bearskinrug.co.uk/
What would be the proper drupal way (if any) to do this?
Is using flexinodes the best approach? If so, (I assume i create an data type for the image to be associated with the article) , how do i code the block to reference to the image in each node?
Is there any improvements indrupal 4.7 that would make this easier?
Comments
help?
can anyone help me please? At least give me a one line answer giving me a clue of what I should be searching the forums for? Or if it can't be done, just tell me, is this something that drupal just can't do?
Or can someone tell me another drupal focused forum where I can ask this?
flexinode
Hi Grimmreaper...
There's probably a number ways of doing that....I'm not sure which is best, but, using flexinode is an option...
Step 1 - when setting up the flexinode, include an image field.
Step 2 - theme the flexinode at the $content level and display the image at the top of the article..before the text appears.
For assistance on Step 2, here's a recent post that explains how to theme flexinodes at the $content level and if you scroll down there is a tip on how to position an image attached to a flexinode.
As I said earlier...there are probably a number of ways of doing this..so that is just one way.
Hope that helps.
Dub
Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate
great
thanks for the idea, that gets me a base to start off from. I'll post my final solution in case it'll help anyone else.