I need to display some pages as modal for a project. Do I simply configure the menu item in hook_menu() and call drupal_render_page() for the callback? Actually, I guess that wouldn't work, because I'd have to specify the specific page as an argument to the callback in the hook_menu function.

How can I use this to set a particular page as modal?

Comments

couturier’s picture

You can create modals with CTools by using their examples as a format for your own. Be sure to activate the examples feature.

vintorg’s picture

Would I still use this module?

couturier’s picture

I don't think it is necessary, but it would depend on what you want to do. Try the CTools modal capabilities first and see if they do what you want. Be sure to activate the modal examples that come with CTools so you can see your options.

vintorg’s picture

Status:Active» Closed (fixed)

OK, thanks.