make DDBlock 'Read More' open node in light box?
caminoz74 - October 31, 2009 - 03:27
| Project: | Dynamic display block |
| Version: | 6.x-1.0-rc6 |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
Hi,
I am wondering how I would make the DDBlock 'read more' open the displayed items node (i.e. full details) in a lightbox that could then easily be closed and return to the page with the DDBlock?
Thanks... any ideas appreciated!!

#1
Have a look at: Lightbox2 - How to add a lightbox to webpage links using lightbox2 module.
You can find a paragraph: Opening node content in a lightbox.
The node id is available in the preprocess function you added to your template.php file for the ddblock module. You can create the link in the preprocess function, like described in the link above.
Hope this helps you further, please let me know.
#2
Thanks for your response!
not fully understanding how to implement this would you mind guiding me through the actual step...
I have found
// add slide_read_more variable and slide_node variable
if (isset($result->nid)) {
$slider_items[$key1]['slide_read_more'] = l('Read more...', 'node/' . $result->nid);
$slider_items[$key1]['slide_node'] = base_path() . 'node/' . $result->nid;
}
But not sure where I would place '/lightbox2' in this line of code? or do I have to place the whole 'click here to see node content' somewhere?
I know very little of PHP so spend most of my time feeling my way through...
thanks heaps
#3
not sure if this is too much of a non paid support question or not??... feel free to indicate!
thanks
#4
If you want me to perform this as a paid customization, please contact me on my contact form.