- Posts: 20
COMMUNITY FORUM
Frontend Ajax Editor Issue
- Lou Griffith
-
Topic Author
- Offline
- Junior Member
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
Please Log in or Create an account to join the conversation.
- Lou Griffith
-
Topic Author
- Offline
- Junior Member
- Posts: 20
Lefteris Kavadas said:Hi. No there is not an option for this but if you know a little HTML and Javascript you can change the default behavior.
Please Log in or Create an account to join the conversation.
- Lex Machina
-
- Offline
- New Member
- Posts: 8
I know html and can read JS, but I'm having a hell of a time trying to fine the file the ajax front end editor code is even in. Anyone help me out here?
Please Log in or Create an account to join the conversation.
- Lex Machina
-
- Offline
- New Member
- Posts: 8
I'm having them right-click the "add item" and "edit item" links to open the editor in a new tab or new window, to avoid the popup problems [including lost work on clicking outside the window] but there HAS to be a solution for these issues, because frankly, it's just stupid that I have to even suggest a workaround like this, let alone have my users implement it.
Can anyone help me out? Even a simple redirect to open the editor in the current window and then redirect back to the originating link page after submitting would be something... at least to them, it would appear that it worked. I just don't know enough to code it myself.
Please Log in or Create an account to join the conversation.
- Lex Machina
-
- Offline
- New Member
- Posts: 8
This thread has had better luck. Haven't tried it out myself just yet, but thought I should share the news:
k2community.joomlaworks.gr/forum/topics/frontpage-edit-window-size?page=1&commentId=3536014%3AComment%3A6566&x=1#3536014Comment6566
Please Log in or Create an account to join the conversation.
- Lou Griffith
-
Topic Author
- Offline
- Junior Member
- Posts: 20
Lex Machina said:dave said:anyone making any headway on this issue? Looking for usable workarounds right now. Not getting very far...
This thread has had better luck. Haven't tried it out myself just yet, but thought I should share the news:
k2community.joomlaworks.gr/forum/topics/frontpage-edit-windo...
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
dave said:Thanks for the link Lex... but I had been on that topic before. It was helpful in showing me how to resize the modal window (lightbox)... but I want to get out of the lightbox window altogether and just edit on a new page or in a pop-up window.
If anyone is getting closer to discovering how to do this please post here!
I also am having timeout issues in the modal window... where editors are getting kicked out and losing their work on an article. Very very frustrating. I am still kind of confused as to why this modal window was even implemented into K2 in the first place. I dont mean to come here and only provide criticism, but it is by far the most unstable feature of this component that I have seen so far.
Anyone else getting timeout issues when staying in the editor for too long? Could this just be a problem with my server settings somehow?
Please Log in or Create an account to join the conversation.
- 2ninerniner2
-
- Offline
- Junior Member
- Posts: 24
To change the size of the Modal Front End pop-up editor for all instances:
Find this code: handler:'iframe',size:{x:990,y:650}
… and replace with values that fit your requirements; I chose 910px and 510px which gives a nice all around margin, including the “Close X”, on a laptop with 1,024 x 768 resolution.
1.components/com_k2/templates/user.php
- line 46
- line 107
2.components/com_k2/templates/default/category.php
- line 47
3.components/com_k2/templates/default/category_item.php
- line 31
4.components/com_k2/templates/default/item.php
- line 30
- line 111
5.modules/mod_k2_login/tmpl/userblock.php
- line
Alternatively, and what I am now doing with all my client K2 – enabled sites is to have the editor open in a new tab/window (target = _blank). This has the added benefits of:
- not inadvertently leaving the Item “locked” if one clicks outside the pop-up and closes it; once “Submit” has been clicked and the “Item Saved” is displayed, the new Item show up in the K2 Item listing in the “proper” (unlocked) state
- one can have more than one Item Editor “tab” open; may come in handy, but again, watch the 'time-out' issue
Here's how I changed the code in ALL of the above locations (may or may not be appropriately “elegant”, but it works :) )
- replace:
a class="modal" rel="{handler:'iframe',size:{x:990,y:650}}
- with:
a target="_blank"
Maybe I am just “old-fashioned”, but I believe Lightboxes are great for photos, etc., but anything that has to do with a “program's” functionality sould be provided within it's environment; a more consistent experience for the user, especially the casual or non-tech end user (i.e. the client! :)
Now, if we could ONLY get the PROPER buttons! Save, Save & New, Apply, Cancel ... my next "quest" :)
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Away
- Admin
- Posts: 6227
Please Log in or Create an account to join the conversation.
- 2ninerniner2
-
- Offline
- Junior Member
- Posts: 24
JoomlaWorks said:We have addressed this in version 2.1 coming this Tuesday, Sept. 8th, 2009.
Please Log in or Create an account to join the conversation.
- Lou Griffith
-
Topic Author
- Offline
- Junior Member
- Posts: 20
JoomlaWorks said:We have addressed this in version 2.1 coming this Tuesday, Sept. 8th, 2009.
Please Log in or Create an account to join the conversation.
- John Comeskey
-
- Offline
- Junior Member
- Posts: 33
You did?? I am using V2.1 and I still cannot see all of the frontend editor. Please clarify how you addressed these problems. Thanks.
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
John Comeskey said:JoomlaWorks said:We have addressed this in version 2.1 coming this Tuesday, Sept. 8th, 2009.
You did?? I am using V2.1 and I still cannot see all of the frontend editor. Please clarify how you addressed these problems. Thanks.
Please Log in or Create an account to join the conversation.
- Marco Villa
-
- Offline
- New Member
- Posts: 5
Lyle Chamney said:Find this code: handler:'iframe',size:{x:990,y:650} … and replace with...
Please Log in or Create an account to join the conversation.
- John Comeskey
-
- Offline
- Junior Member
- Posts: 33
Lefteris Kavadas said:The topic is about the issue clicking outside the modal window. In the latest release if you click outside the modal the modal stays open preventing from loosing accidentally your work. So yes we have addressed this issue.
John Comeskey said:JoomlaWorks said:We have addressed this in version 2.1 coming this Tuesday, Sept. 8th, 2009.
You did?? I am using V2.1 and I still cannot see all of the frontend editor. Please clarify how you addressed these problems. Thanks.
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
scott said:Yeah why does the lightbox stay open on save? any solutions?
Please Log in or Create an account to join the conversation.
- Sanmathy
-
- Offline
- New Member
- Posts: 3
use this code
rel="{handler:'iframe',size:{x:window.getSize().scrollSize.x-80, y: window.getSize().size.y-80}, onShow:$('sbox-window').setStyles({'padding': 0})}"
Please Log in or Create an account to join the conversation.