user633163
user633163

Reputation: 41

drupal ctools - how to show view in modal

I'm wondering how to show a view into a modal? Could someone give me an example? Further more I like to call the view out of an action.

Upvotes: 4

Views: 3670

Answers (1)

Aaron Newton
Aaron Newton

Reputation: 2316

Have you looked at this? http://www.angrydonuts.com/ctools-presentation-slides-and-example-code

This is implemented using hook_menu, which offers a means to call the modal (see http://api.drupal.org/api/drupal/developer--hooks--core.php/function/hook_menu/5)

In terms of using an action, I would have thought you could have applied the same code inside your action code (see http://drupal.org/node/142154 "Implementation of a Drupal Action"), but I could be wrong.

Upvotes: 1

Related Questions