The module, in its current state, does not allow me to do a hook if my URL path uses a wildcard character/pattern ("example/%item") and ensure a functional modal. In fact, it leads into the return statement in my page callback attribute, and does not generate a modal. This is a serious blocking issue that I think should be resolved.

Comments

KingThrillgore’s picture

adamtyoung’s picture

I agree. I can't believe that argument handling is not built in. Seriously limits the usefulness of this module.

wojtha’s picture

@KingThrillgore @adamtyoung
You can try my fork here: https://github.com/wojtha/ctools_automodal I believe it was fixed in this PR: https://github.com/wojtha/ctools_automodal/pull/4

Reasons why I made the fork and its additional features are listed here: #1420534: Consider a new hook - hook_ctools_automodal_paths() rather than using hook_menu()

Ismaels’s picture

This is actual possible, if you use a wildcard without a type, % instead of %file or %node, you will need to create your own hook_load.
See "Auto-Loader Wildcards" @ https://api.drupal.org/api/drupal/modules%21system%21system.api.php/func...