Active
Project:
Lightbox2
Version:
7.x-1.0-beta1
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Oct 2011 at 03:21 UTC
Updated:
8 Apr 2012 at 17:14 UTC
How do I show inline content from a div? I've tried to look at the documentation but it's for version 5 & 6. If you don't have this then can you please try and add this feature. I'm using colorbox but it interfers with the media gallery module.
Comments
Comment #1
yukare commentedCurrent lightbox for drupal 7 is almost the same for drupal 6, there are no new features and most of what works in d6 works in d7, so the documentation is the same as for Drupal 6(but i need to write a "what changed in drupal 7")
I do not understant what you want. You have some text inside a node and want to show it in the lightbox? We can show a image, and show a full node using rel="lightframe".
So, please, tell me exactly what you want with a use case, so i can see if lightbox can not do this now, or if i can add it.
Comment #2
AlanO commentedYes, I want to show some content from within a node. I'm creating a node that has a lot of content in it. It's basically a whole book chapter/lesson in one node. Now instead of using the Book module to show all the individual topics inside the chapters(which messes up continuity) I just want to create links in the begining of the node and call the specific topics to show in a lightbox. I created divs for each topic and put links to them using the colorbox-inline format. Here's an example of what I would like Lightbox to do.
http://technate.org/library/technocracy-study-course/intro
I've figured out a way to fix my issue. The colorbox module messes up the media gallery module when colorbox is set to uncompressed. I minified it and now it works fine.
I will still try lightframe and see how that works with full nodes. I used lightmodal previously using this documentation(http://drupal.org/node/276378) and couldn't get what I was looking for. This is what I was refering to previously for documentation. From the comments it seems that lightbox2 doesn't have this feature of inline content. Thanks.
Update: I've tried the lightframe and it does show the node but also the whole webpage itself. Is there a way to only show the node itself?
Comment #3
jbarns commentedI'm also having an issue displaying inline content using the lightmodal reference. It shows the whole webpage when I just want to show the node content. Not sure if its the exact same issue as the above.
Comment #4
kappaluppa commentedI also was trying to display a node in a lightbox frame w/o header/footer/sidebar stuff... I just wanted what is output via "content". I tried the recommended node/nid/lightbox2 method but that still gave me the full page. I also tried with lightframe and lightmodal. No go.
I ended up creating a new page template using suggestions here: http://drupal.org/node/252260
With the advent of the page template changes in Drupal 7 some of the suggestions for creating custom page templates are confusing, so I went here for better information on that piece of the puzzle.
Please note that I am attempting this in views via "Rewrite this ouput". I am having to go this route because as of this date & release I do not find the trigger field option in views.
Comment #5
jbarns commentedIs anyone who developed this module looking into this? I'd rather not do a work around and I would like to use this a lot in my site, especially for personal contact webforms.
If there's not development I will look for a different module.
Comment #6
trante commentedDuplicate of
http://drupal.org/node/1378438