Add node CCK fields to a lightbox image? - drupal

I have a view with different nodes and an image with lightbox functionality.
I need to add some CCK fields of the node to the lightbox overlay. In other words, I don't want only the image to be displayed in the lightbox, but also some CCK fields of the current node.
What's the easiest way to do it ? Should I code it, or is there any module to customize lightbox ?
ps. My node is an Ubercart product. I also have Price, Order button, not only CCK fields.
thanks

I've solved by using the lightmodal option to include any html code and using "custom formatters" module to assign it to each image.
Successively I've edited my node.tmp.php file for being displayed in the lightbox.

Related

How to use an image for a blog post thumbnail, but NOT have it be the featured image on the top of the post?

I have an image that I would like to be used for thumbnails for the page, but I don't want that as a featured image when users come to the page. Does anyone know how to do this in wordpress?
Thank you.
You probably want to use ACF (Advanced Custom Fields) to add a new field for an image in posts (or you can create your own meta field just for the image). Then You can edit your theme to show whatever image, wherever you want.
ACF Plugin
If you just want to hide the featured image in every post, and only show it in blog page (or a page like that), you need to edit the post template.
https://developer.wordpress.org/themes/template-files-section/page-template-files/#page-templates-within-the-template-hierarchy
I ended up solving this by using an extension called 'Conditionally display featured image on singular posts and pages'. This allowed me to toggle off the the big picture on the post.

Post or Page specific image gallery in Wordpress

Is there a way from which I can use any plugin and show Post or Page specific image gallery? The image gallery upload area should be displayed in Page when Creating or Editing the page below or above the text composer or should be at least in the page. And this gallery should not be hocked the default Image gallery of wordpress or at least should not show the images that's in default gallery.
Kindly let me know if anybody knows any plugin that does the above mentioned job.
You can do this simply by [gallery] shortcode. You can also set image ids like this: [gallery ids="729,732,731,720"]
Here is my answer: All my requirement got fulfilled by default "Media Library" tab. I just need to select the option "Uploaded to this page" from the dropdown. So, no need to use any plugin for the requirement I had.

Wordpress - Image lightbox with different image when clicked

For my wordpress site, I need some images arranged in a grid and when one is clicked a specific (different) image is displayed bigger. I thought that there maybe is a lightbox/gallery plugin, where one enters the link for the small and big picture, and I can just use the link to a different image instead of to the same one, but bigger. Does anyone know a plugin that works like that? Or any other way to make that work?
You can use "WP Gallery Custom Links" plugin to set different image link by using "custom URL" option.
Simply go to a post or page and create a new gallery. You will see the custom link meta fields for individual images in a gallery.

How to add custom field in Sidebar under Feature Image column?

I am using WebDevStudios/CMB2 to create custom fields for WordPress posts, that is working fine. My question is how can I add field in sidebar in area where Featured Image located.
You can use add_meta_box() for solving your problem. This function should be called from add_meta_boxes action. For more information please refer to http://codex.wordpress.org/Function_Reference/add_meta_box.

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