I am new to Drupal. I have a form which adds details of user to my table. I want to display that node in a popup window. How would I do this?
Use the Colorbox Node module:
Gives the user the ability to display ANY page inside a colorbox modal without the header and footer. Those pages include:
This is an apt module for pop up a node.
The best way is actually this module:
The only think you need to do is adapting the path and you're done!
Using colorbox node module to open node content inside the Colorbox.
Install both module and enable it from modules list. after You should create link either manually or using views or whatever the way you want. e.g.
<a class="colorbox-node" href="node/123?width=600&height=600">Page1</a> <a class="colorbox-node" href="node/123" data-href="node/123?width=600&height=600">Page2</a> <a class="colorbox-node" href="node/123" data-inner-width="600" data-inner-height="600">Page3</a>
You should specify
height of colorbox to fit your content.
<a class="colorbox-node" href="blogs/my-example?width=600&height=600" rel="gallery">My Example</a>
Also integrate with Views/Context/Panels Support
Node pop-up module create paths for popup node view without any dependency (only Drupal 7 core functionally used for creation popup window).
- Enable module
- Create link.
- Variant 1: Set data-npop="NODE_NID" (recomended)
- Variant 2: Set href attribute as "ajax/npop/node/[nid]/load/nojs", where [nid] nid of node and set link class "use-ajax".