By reefedjib on
I loaded the Image and ImageField modules. I was able to import my four images.
I went to Site Building >> Blocks and saw three options to display my images:
- Attached images
- Latest image
- Random image
I tried Attached images, but I couldn't get them to display in my Right Sidebar.
The other two worked and I am now using Random Image set to 4.
How can I get Attached images to work?
My other question is on making an image an a href. I want to be able to click the image and go to a new page. How can I do this?
Thank you for your help.
Comments
before you continue...
How will you be using images in your site? In 95% of the sites I build, I prefer the combination of the imagefield and imagecache modules over the image module. Many people believe that imagecache+imagefield is the way forward, especially with d7 coming up. If you haven't done so already, I recommend that you read about the differences between those two solutions before continuing.
Where can I read about the
Where can I read about the differences between image and imagecache+imagefield? I have both image and imagefield loaded - are they interfering with each other?
_
They can interfere with each other if you try to add an imagefield field to the 'image' content type created by the image module.
As for reading about modules-- the best place to start is by following the 'read documentation' link on the module's project pages. Another good place to look is in the module's directory-- there are frequently readme.txt and/or install.txt files that contain valuable info.
http://drupal.org/node/429214
http://drupal.org/node/429214
thank you
thank you
image as an href ...Do you
image as an href ...Do you want to click the image and open the image on a new window or do you want to click the image and open a diffirent url/new page...
I think what you want can be done using CCK ... Administer -->Content Management -->Content type -->you select on manage fields of the content type you created --->display fields --> you will see the option under teaser or full node .... I guess this is what you want to do ...
How to display could be done using Views ..you can create a block view and have it shown on the front page ...
Try watching the video on Learnbythedrop website ..you will have a better understand ..or try getting hold of the book UsingDrupal ...Chapter 7
I want to click the image and
I want to click the image and open a different url/new page.
I just unloaded image. I am going forward with imagefield+imagecache. Imagecache seems to require imageapi, which says: "It only provides an API other modules can leverage. Currently GD2 and ImageMagick support are distributed with ImageAPI.". So which do I use and where do I get it? It doesn't say.
Presumably, this will give me an Image content type, that I can then do what you are saying. I saw a few fields for URL, but I couldn't drag them to a content type or group. Confused.
Thanks.
IMG as HREF
When you click on the image, you will go to the URL.
Where do I enter that, in a
Where do I enter that, in a block?
=-=
edit the block of choice and add it to the body text area for the block
It works! This is what I
It works! This is what I added:
<a href="http://www.virginia.gov" target="_blank"><img src="http://mySite.org/sites/default/files/seal_virginia.jpg" alt="" width="220" height="220" /></a>Should I be referencing the image by 'sites/default/files/'? Or should it be a content that I reference through 'content/contentName'? When I had the Image module loaded it gave me an Image content type to do this with. I don't have an Image content type in imagecache/imagefield.
=-=
I would use a relative url and not an absolute url
What would that look like? I
What would that look like? I just tried '../sites/default/files/seal_virginia.jpg' and it didn't work.
=-=
either sites/default/files/name of file or /sites/default/files/name of file note no ..