We have a calendar that is positioned low on a page under a bunch of content, When I click on the date in the calendar at the bottom of the page, the edit opens up at the top of the page causing you to have to scroll up to see the add popup. Is it possible to have it instead popup in the center of the current viewable area of the page?

CommentFileSizeAuthor
#3 modal.zip5.28 KBgiaza

Comments

kruser’s picture

Wondering why we can't just open the native node/add/event page? in an overlay?

tim.plunkett’s picture

Two reasons.

  1. I don't use the overlay ;)
  2. this is a *separate* form, and can be form altered as such
giaza’s picture

StatusFileSize
new5.28 KB

Hi, this is not a full calendar create module issue.
I has to do with a bug in chaos tools dialog javascript file.
Here is a patched version that i cooked up according to a post in chaos tools issues I don't remember.
It must replace that one in ctools\js\ in your modules folder.

One question to Tim:
Why not permit not only to create but edit and delete nodes too?
I have used your module in combination with colorbox to create and editing nodes clicking on fullcalendar area,
but I think it would be better using only one solution.

kingfisher64’s picture

Priority: Normal » Major

Nice. This adds a whole dimension of usability to the fullcalendar mod. Like previously mentioned there are alignment issues.

Really good addition though. Definatly would bundle this with the main module it's brilliant and follows the whole inline mentality of d8, spark etc.

Any chance you'd consider including this as sub mod of full calendar in next release?

Can confirm modal patch in previous thread appears to sort out positioning issue. Has this been patched in ctools?

inst’s picture

Hi giaza,
can you explain, how you achieved this: "I have used your module in combination with colorbox to create and editing nodes clicking on fullcalendar area,"

thanks!!

best,
frank

inst’s picture

Hi giaza,
I tried your modal.js and it worked.
Except, that the new window is not in the center but shifted to the right.
best,
frank

giaza’s picture

Hi Frank, you are right, the modal window is positioned to the left,
But I wasn't aware of this bug because I set Its position in pixels.
If you specify the modal size proportionally (the default) the problem shows, it is not present if you size the modal in pixels by css (as in my case).

giaza’s picture

As for your post #5, I have used fullcalendar create to add new nodes and colorbox to edit them.
You must add the nid field to the view and exclude it from display as its purpose is only to provide the [nid] pattern; add another field and rewrite it as "/node/[nid]/edit" and exclude from display it too.
Then add a colorbox trigger field and set the last field you added as the trigger field, this way fullcalendar opens the node edit page in a colorbox.
Make the chaos tools modal and the colorbox similar (in size and look ) by css or by options.
Just one little problem: once you save the node in colorbox your are not redirected to the fullcalendar view page, for that I have written a little module.
I'd take a look at this link too: http://drupal.org/sandbox/muschpusch/1717638.
I haven't time to test It yet.
I Hope this helps