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
Comment #1
shadcn commentedSure. I'll start with some documentation tomorrow.
Comment #2
loheslath commentedPlease, have you got tutorial or step by step configuration?
Thank
Comment #3
shadcn commentedOnce 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
Comment #4
loheslath commentedThank for your comment.
I expected the modal view show all node full content elements but it show only teaser node elements.
Comment #5
shadcn commentedYou should select the full view mode as the target then condfigure your fields for full.
Comment #6
loheslath commentedOk, but not work for comment informations.
Comment #7
Chris CharltonI'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. :)
Comment #8
shadcn commentedDone :)
Comment #9
loheslath commentedOk, thank.
Comment #10
ghazlewoodThanks 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.
Comment #11
shadcn commented