I think I love the idea of this module, but i can't get it to work. Can you provide a step-by-step guide?
Should I be able to choose the modal view mode in the entity display? Because i tried to display a entity reference field as modal but the option does not show up.
Thanks for your help and work!

Comments

shadcn’s picture

Assigned: Unassigned » shadcn
Category: support » task

Sure. I'll start with some documentation tomorrow.

loheslath’s picture

Please, have you got tutorial or step by step configuration?
Thank

shadcn’s picture

Once the module is enabled, if you go to the "Manage Display" tab for an entity (node or user), you should see a new settings called Modal. There you can set the target view mode.

Target view mode is which view mode to open in the modal. eg on a teaser view mode, you can set the target view mode to be full. When you view the teaser, it'll be rendered as a link that on click opens a the full mode in a modal.

Hope this helps. I'll try get some more documentation on that later. super busy right now. :)

Thanks

loheslath’s picture

Thank for your comment.

I expected the modal view show all node full content elements but it show only teaser node elements.

shadcn’s picture

You should select the full view mode as the target then condfigure your fields for full.

loheslath’s picture

Ok, but not work for comment informations.

Chris Charlton’s picture

I'd suggest for now just paste on the project front page the simple steps you outlined above in comment #3. Then add something later if you get time. :)

shadcn’s picture

Done :)

loheslath’s picture

Ok, thank.

ghazlewood’s picture

Thanks for the great module, worked a treat once I dug through the code to work out the way to build a modal url manually.

For anyone else trying to use views or similar to build a path the format is /modal/nojs/view/[entitytype]/[entityid]/[viewmode]. And you'll need to add the classes 'view-mode-target-link' and 'ctools-use-modal' to the link too.

shadcn’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.