using drupal 6.
Modules installed for working with the images:
filefield
image
imageapi
imagefield
imagecache
I made this content type called 'event' where I added the possibility to upload an image.
The preview shows that I successfully filtered the nodes according to type showing the node type and node body just fine.
When I click the '+' next to fields, I'm being given a couple of options about images and the first one seems to be what I'm looking for; image:image.
When I visit the nodes seperately by inserting their path into the address bar, I see the title with the body and the original image below it.
But no matter what I seem to do in views, the list of events won't show any of the images that are part of the nodes. Not even when I set 'image size to show' to orignal.
I figured it out eventually. First, it needed to be an image that is part of the 'content' category under 'fields'. Then I set a thumbnail which I could then select from a dropdown once I've chosen 'content: image'.
Now, something that has to do with the permissions has me floundring again. So that's for a new question I guess.
Related
It's useful to use Image field from Drupal Views module blocks.
But it's very unuseful to place pictures into this field.
The more convinient way for me is to insert images right in node Body.
How to make first image from Body to place to Image field automatically?
Or from Summary?
Or learn Views module to access first image directly from node?
Or... maybe I misunderstand some simple things?
UPD: I'm using WYSIWYG editor. All images are uploaded.
I'm starting with Commerce Kickstart 2 together with demo store.
I added a product and upload one image, this product has one of the demo store variation types (Bags & Cases) and the product display type associated.
It seems simple since I didn't change nothing. But when I click in main menu the products already there are listed fine, with product image, only my new product don't show the image.
I see in variation types Bags & Cases that the Images field, Column Format, is defined as image delta, Image style: product_medium. And that is the point. In MySite/sites/default/files/styles directory are the styles of images. In that directory there is the product_medium directory where the images showed when in View Mode Node:Product list (the list of bags listed when click in To carry).
Well, the fact is when I create the product there is no option to load an image that will saved in MySite/sites/default/files/styles/product_medium directory. And that's the problem. Since when I manually copy the image to that directory, the image is showed up.
Where I define this product_medium image?
You don't have to manually copy the images. 'product_medium' is an image style, which is already created when you automatically installed the demo store. So, once you upload an image, the image will be saved in the product_medium folder.
Are you sure that you have given correct permissions to the sites/default/files directory, which being the full permission?
i would like to create an image gallery on my homepage in drupal. Each image will have been uploaded by the user, and, as i understand it, will be saved in some image directory folder in drupal. My question concerns a recent tip i picked up in response to the general debate whether or not it is good to store images as blob in mysql. The tip was to store the filenames of the images in mysql so you can essentially still sort the files. I was wondering whether this would be possible even if the files url is in drupal so to speak. It should be possible shouldn't it? I new to programming you see and want to the images on my homepage to be periodically refreshed according to a define sorting function. I would greatly appreciate any response to this question. Cheers.
You can using content types and views module for create gallery in Drupal 7.
First create new content type with gallery name(admin/structure/types/add).
Then add a image field to gallery content type and save it.
If you want have thumbnail of image you should create a image style. for example create a image style with thumbnail_custom name and add suitable effect(admin/config/media/image-styles/add). You will use of this image style in views in the next step.
Then create a new view with gallery-view name. uncheck create a page, check create a block, enter block title and item per page you want(admin/structure/views/add).
In Filter criteria from block details add content type gallery.
In Fields add Content image that appears in node:gallery and select and select thumbnail_custom for image style option.
Save view.
This view block appears in Blocks section and you select region for it.
If you want this block appears only in the front page, in configuration of this block in the section pages of visibility settings check "Only the listed pages" option and then enter "<front>" phrase in textarea.
Is there some way to let me insert external image to Wordoress at the section of "fuatured image" from external source?
I like the image be visible at the home page but not at the post. the image at the home page need to link to the post.
Wordpress doesn't allow to insert image from external link as features image (only to post).
Couldn't find any proper solution till now in the net.
Help?
Cheers
you can add external images to wordpress post. when you click on featured image it open a modal box there are three tab the 2nd tab lets you insert the external image i.e. you can put an external URL of media, then there is wordpress function to get featured image.
so you can it using.
get_post_thumbnail($post_id, $size, $attr);
post_id (integer) (Optional) Post ID.
Default: Post ID
size
(string/array) (Optional) Either a string keyword (thumbnail, medium, large or full) or a 2-item array representing width and height in pixels, e.g. array(32,32).
Default: 'post-thumbnail'
attr
(string/array) (optional) Query string or array of attributes. See wp_get_attachment_image.
Default: None
http://codex.wordpress.org/Function_Reference/get_the_post_thumbnail
and for permalink you can use
the_permalink();
hope this helps
I've posted this elsewhere, but how about this plugin?
http://epicplugins.com/external-url-link-to-featured-images/
It lets you add featured images from an external URL.
There's also a Chrome extension: https://chrome.google.com/webstore/detail/post-to-wordpress/hhmhfcfbheceghfbfjgkjnlhooadpnej which does a really good job.
I have drupal6,cck,views,imagecache.
category_type gallery contain a CCK node reference to a category_type images
and In this Images there is a cck file (image) field.
I know how to create a view which will display a list of galleries.
BUT question is .. HOW can I display a list of galleries with a THUMBNAIL that is made of first image available inside that gallery.
And I don't want to add a extra field for gallery (in category_type) like "preview pic"
Just want then to be displayed by reference.
Example:
If I create a gallery with one picture inside... I want this picture to be my gallery thumbnail.
If I create a gallery without image, there will be no thumbnail ... or default "notavailable" picture.
IF I create a galleyr with many images / remove them /etc.. wanna make sure that first available picture in gallery is gonna be it's thumbnail.
please help ;)
You might be able to do this in a view, but if you want even your basic gallery node to show an image from one of the child nodes you could do something like this in a file called node-gallery.tpl.php where gallery is the content type machine name:
// load the node reference
if ($child = node_load($node->field_nr_child[0]['nid'])):
// ... and just print the image from that child node
print $child->field_image[0]['view'];
endif;
You could also randomize which child you show or show only the most recent child with some foreach fun. You might want to override where the content is displayed so you have more control over formatting but this should get you started.
You can also check out this great screencast I just found looking for something else. I think it does exactly what you want without the custom code: http://www.lullabot.com/articles/photo-galleries-views-attach
In CCK image field you must set Default Image ("notavailable" picture).
After this you can:
1. theme node as Jeremy Heslop sayd - node theming;
2. if you make views of Gallery by row style="Fields', then click link on Theme:Information, select appropriate theming file, add it to theme folder, and theme one field (for example, Title) changing it to thumbnailed and linked image (taked from referenced "Images");
3. In Views add Relationships, that will connect "Gallery" with "Images", and show 1 image in field.