How to add galleries to nodes in Drupal 7? - drupal

I have site with news, and I want to make it possible for admin to add image gallery to articles (nodes) he wants. So, the idea is to make gallery image field for every content type from which images should be taken, and if admin wants gallery for that article he can upload images, if he don't he can just leave it alone, and Drupal renders that node without gallery perfectly normal.
So, I made that gallery image field for every content type, and used Views module for taking and rendering pictures. But, whereas Views taking pictures at content type level, not node level, that is the reason why unpleasant consequence appear: gallery from particular node, shows on every node of that type.
My question is how to make galleries relative to particular nodes (specific gallery for specific node). And it should be extremely easy for admin to manipulate.

Theres a few modules you could use for this:
https://www.drupal.org/project/node_gallery or
https://www.drupal.org/project/field_slideshow
Since you've already created the field, you could probably use Field Slideshow and it will turn your image field into a slideshow on the display for the node.

Related

Using wordpress stylemix template "Consulting Child" I need to add images to a catgory list

Using wordpress stylemix theme "Consulting Child" I need to add images to a catgory list. the screen shot shows two older posts with images setup by the architect whom is not available for consulting, and the new post at the top of the list without images. I cannot trace the steps of the older posts because of this editor used, called WPBakery.
WPBakery uses CSS modules called ELEMENTS. There are over 100 different types of Elements to add to your theme - like, in this case, a Details Element was used to display the image however, it's very un-intuitive as to how it is configured.
I know this question can only be answered by the few out there who've used Stylemix and WPBakery, so I hold an open mind as to how you might solve this issue.
Thank you for your time.
enter image description here

Creating a Wordpress masonry style gallery with a lightbox that only cycles through images with the same category/tag

I am trying to create a Wordpress image gallery which does a few things that no one plugin seems to do on its own.
Basically I want to:
1. split the media library into categories/albums
2. display every image from those albums mixed together on the same page in a masonry style layout (An image from category a, then an image from category b, then an image from category c etc etc)
3. bring up a lightbox when an image is clicked that only cycles through images from the same category
The difficulty is that I'm not sure where to begin, so I'm looking for some ideas on how I should approach it. Would starting with a plugin which separates the media library into categories/albums be a good place to start? Could the native Wordpress masonry/tiled gallery and lightbox be adapted to do the rest?
Update: I've registered new taxonomy which applies to attachments, so the images now belong to categories
Really sorry for not giving a better starting point!
To sum my understanding of what you need: You need posts, with attached images that belong to categories.
Replying to your points:
Forget about splitting the media library;
You just loop through the posts;
You install a simple lightbox gallery plugin and only loop the posts you need.
To accomplish this:
Register a custom post type (which I saw you already did);
Create your custom posts, associate the images and give them a category;
Install masonry (doesn't matter the way it looks right now) and loop the featured images;
With a lightbox plugin, pass the ID of the clicked item, go get the category and loop it so users can check the images of the same categories.

How to make collection of the galleries on same page in drupal 7?

I need to have page that is collection of the galleries. Every gallery has to be represent by one image. When user click on that image whole gallery that image represents should open. And the same thing for every image. Something like on this site.
Of course there is non elegant way where for every gallery we have to make new content type, and views for each of it. But I want to make it easy for client to add new gallerias, without building views every time. Is there a module that makes collection of galleries. If someone want to help me and lead me step by step it would be appreciate.
You can do this using Node gallery module,
The Node Gallery module allows you to create multimedia galleries
where both the galleries and the gallery items are nodes. (as opposed
to gallery items being file fields, like Media Gallery)
Check the demo here

Home page manageable content in wordpress

I have a WP website which has a home with a top banner and 2 more controllable panel like here.
My question is what is the best way to keep this controllable via admin?
The way I did it was to create two categories by the names "Latest Updates" and "New in 2013!" and then coded it such that the posts coming under the categories gets displayed in their respective panels on the home page. The image as usual controlled via the Featured Image of the post. A pretty basic setup to manage its content via posts to keep the layout intact and at the same time do the task.
I had suggestions where we should keep it right there in WP editor for control i.e. put all the div / ul / li etc. right there in the WP editor using the text part and have the admin control it right from there.
I need to know which method is better for implementation i.e. managing via posts like it is now or keep it right there in the editor and put HTML content in the editor.
All recommendations much appreciated.
Your first one method is correct ,easy and safe.
Safe Because,If accidentally any change in editor then all showing content breaked

Creating a new CCK field from an imagecache preset?

I have an image gallery for which I have configured an Imagecache preset. It's my first time using Imagecache so I am not sure if I am using it right.
Right now, I see that I can only configure the CCK imagefield to show me the imagecache generated image in either the preview or the full node version of the field.
I would prefer to have a new CCK field with the imagecache generated picture. Is this possible? Is there a module for this?
If it isnt, how can I customize my gallery view to show me the preview version of the image, instead of the full node version, which it is currently showing?
Assuming you have defined an imagecache preset called preview, you can create a view display of your gallery_image node type that uses fields rather than node view and selects the field content_name_of_your_image_field and set the display of this field to preview. If you want to turn this into a gallery, you can link this field to its node, and choose the Grid view style from the menu on the left.
I am guessing that you are probably about half way through these instructions already (unless you are using a horrid image gallery module to create your image gallery).

Resources