Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By nick_helps on
Hello,
I am trying to open a view in modal and tried colorbox, and ctools both but could not achieve what I wanted.
with colorbox I tried jQuery.colorbox({html:"<?php print('here'); ?>"});
hoping to replace print statement with views_embed_view() if simple print works, but it didn't.
For ctool, I found a tutorial "https://www.deeson.co.uk/labs/insert-form-pop-modal-ctools-and-drupal-7" which can show forms in modal, but could not find a way of showing view.
Can any of these do the job, or is there any other module/way to achieve this?
Thanks,
Nick
Comments
Anyone? Any pointers?
Anyone?
Any pointers?
Refer this link will helps
Refer this link will helps you : https://www.drupal.org/node/2704453
Thanks Arulraj
Thanks for the link. I read many other related links, and came across ctools_modal_render($title, $output) function which might have the solution to this problem.
I also followed https://www.drupion.com/blog/10-steps-creating-ctools-modal-window-drupal-7 tutorial to implement this, but it did not work.
Does anyone have a working implementation of ctools_modal_render() or any other guidance regarding this or any other possible solution.
It can't be that complex, is it?
Has no one ever done it yet, or not documented?
This is kind of strange
This is strange
This is strange that no one is participating in this discussion.
Come one guys!
Make your view a block.
Make your view a block. Output the block using a method here: https://www.drupal.org/node/957038
Use the tutorial you found to output the block instead of a form.