Needs review
Project:
Modal Frame Contrib Package
Version:
6.x-1.x-dev
Component:
New module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Oct 2010 at 01:07 UTC
Updated:
24 Apr 2012 at 13:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
liquidcms commentedthought i would take a crack at this even though i am no views handler expert...
so here is a first crack at this.. it is still pulling some required JS from the example module so that would need to change; but maybe someone can comment on whether this is on the right track and worthy of be added to the modalframe_contrib folder.
it basically does what i suggested above.. it adds a new [Node] field handler for Views called "Edit link Modal" which simply provides a link which will pull up the associated node in a modalframe popup.
Comment #2
liquidcms commentedthis version fixes the left over form submits i had still tied to the example module
it also raises the issue of how to have the data refreshed after the popup form is saved.. not sure there is an easy way to do this since this may not have been the edit form for the node that is being viewed. in my case it is a related node on a panel page with numerous views. simplest method would be to simply initiate a page refresh after the form is submitted - but wasnt sure the cleanest way to do this. Anyone??
Comment #3
liquidcms commentedComment #4
markus_petrux commentedRelated issue: #959172: how do i add an onSubmit handler
This kind of integrations is pretty dependent on the particular use case. One may need to update the parent page, but only a portion, and that may vary a lot...
Maybe this module can live as an example for others here, or maybe it could be included to the Modal Frame Contrib Package? I would prefer it rather than adding it to the main Modal Frame API package... or you could create a separate project for it.
Comment #5
liquidcms commentedhere's a new ZIP that
- cleans up the code a bit
- uses its own JS so no dependency on the example module
- does the page reload after modal closes to refresh the page so we can see the changes that were just made
thanks to Markus for pointing me in the right direction to sort out the last bit (and for this great framework).
Comment #6
liquidcms commentedoops.. getting late.. and the ZIP file
Comment #7
liquidcms commentedyea, i sort of thought adding to Contrib package would be the right place.. which is why i set title as New Contrib :)
Comment #8
tim.plunkettI have yet to look at the code, but this sounds like something I'd use. Also, fixing project.
Comment #9
liquidcms commentedah.. yes.. contrib project would be right. not sure if Markus is going to add it though.
i do find it very useful... have it in numerous places now on one site and sure will use it on most other sites i do.
Comment #11
liquidcms commentedi see this still hasn't been committed to the modalframe_contrib package; which is sad as it is pretty cool...
here is new version which includes a modal delete link views field plugin to go with the modal edit field.
Comment #12
jvieille commentedGreat!!!
A must would be to add a "View node modal" handler...