Hi, my name is Kevin I am a student from belgium and I need to make a website for a Parfumerie. I want to display the images of the brands (in a table) with a link on the image (that directs you to the site of the company). I have absolutely no clue how i can do this I looked at every tutorial but it's so chinese for me... I have a link posted below of what i want to do.

Thnx in advance

http://www.parfumerie-margaux.be/nl/merken

Comments

vm’s picture

you'll want to work with the link.module (to add the link to the company)
and the included image.module in core.

markconroy’s picture

You should install link module and also views.

You can then:

  1. Create a new content type called brands for example
  2. Add a field to this content type called logo - make sure it is an image field
  3. Add a field called link to website - make sure it is a link field
  4. Add some content/pages now using this

Then:

  1. Go to admin >> config >> media >> image styles >> add image style
  2. Create an image style using scale and crop and set to 100px by 100px

Then:

  1. Go to admin >> build >> views >> add new view
  2. Create a view of type content, showing only content of type brand, using fields
  3. Give it a menu title and a link address
  4. Click create and edit (I think)
  5. Under fields add a field for your image and one for your link
  6. For the image field, set it to display as the 100px x 100px image style you created a minute ago
  7. Under display settings, choose grid
  8. Under fields, perhaps click on title and click remove
  9. Save your view

That should get you started.

============

Drupal Core Maintainer for "Out of the Box" Initiative.

bapvometh’s picture

OK ty very much for the reply! I'll try this how you explained and keep you updated if it worked!

bapvometh’s picture

Ok thnx so much it worked but I had a big struggle to link URL to the image I had to rewrite it in views but my jq 1.8 didn't support it somehow so I had to change it back to 1.7, took me a while to figure this out! But now it works, always fun to learn new things especially when they work afterwards!!

Grtz from Belgium