- Posts: 22
COMMUNITY FORUM
K2 Add new item window resize
- Carlos Salas
-
- Offline
- Junior Member
You can disable the lightbox by removing the class and the rel.
Before:
class="modal" rel="{handler:'iframe',size:{x:window.getSize().scrollSize.x-80, y: window.getSize().size.y-80}, onShow:$('sbox-window').setStyles({'padding': 0})}" h r e f=" < ?php echo $user->profile->addLink; ?> " > < ?php echo JText::_('Add new item'); ? >< /a>
After:
h r e f="< ? php echo $user->profile->addLink; ?> " >
This way you will get a "normal" link to open in a same window or in a new tab.
Just remember remove the class="modal" because if you don't it will display a worst lightbox
P.S. I had to separate the code because it wont let me place a php code =/ sorry man
Greets.
Please Log in or Create an account to join the conversation.
- Petri Niemelä
-
- Offline
- New Member
- Posts: 6
Thanks. Which php files I have to edit / replace this text for it to work?
Carlos Salas said:Hi Petri! You can disable the lightbox by removing the class and the rel.
Before:
class="modal" rel="{handler:'iframe',size:{x:window.getSize().scrollSize.x-80, y: window.getSize().size.y-80}, onShow:$('sbox-window').setStyles({'padding': 0})}" h r e f=" < ?php echo $user->profile->addLink; ?> " > < ?php echo JText::_('Add new item'); ? >< /a>
After:
h r e f="< ? php echo $user->profile->addLink; ?> " >
This way you will get a "normal" link to open in a same window or in a new tab.
Just remember remove the class="modal" because if you don't it will display a worst lightbox
P.S. I had to separate the code because it wont let me place a php code =/ sorry man
Greets.
Please Log in or Create an account to join the conversation.
- Christian Matthieas
-
- Offline
- Premium Member
- Posts: 80
Petri Niemelä said:Hi!Thanks. Which php files I have to edit / replace this text for it to work?Carlos Salas said:Hi Petri!You can disable the lightbox by removing the class and the rel.Before:
class="modal" rel="{handler:'iframe',size:{x:window.getSize().scrollSize.x-80, y: window.getSize().size.y-80}, onShow:$('sbox-window').setStyles({'padding': 0})}" h r e f=" < ?php echo $user->profile->addLink; ?> " > < ?php echo JText::_('Add new item'); ? >< /a>
h r e f="< ? php echo $user->profile->addLink; ?> " >
Please Log in or Create an account to join the conversation.
- zig zag
-
- Offline
- New Member
- Posts: 10
Please Log in or Create an account to join the conversation.
- Jasper Newton
-
Topic Author
- Offline
- Senior Member
- Posts: 58
Thanks for your post, As i'm sure you've read from this thread, a temporary fix has been found. K2 wont do what everybody else is screaming from rooftops about, because we questioned there supreme being-ness.
zig zag said:Currently the only thing stopping me from using K2 is the lightbox popup for editing, I've been through about 5 JA templates so far trying to find one that doesn't have js conflicts with K2's lightbox and still can't get it to work :( K2 would be much better if there was an option in the backend to use or disable the lightbox completely, this would end 99.9% of all js problems.
Please Log in or Create an account to join the conversation.
- zig zag
-
- Offline
- New Member
- Posts: 10
Please Log in or Create an account to join the conversation.
- Skip
-
- Offline
- New Member
- Posts: 2
Mom cuts about 4 inches off of the end of a roast before cooking it.
Puzzled, her daughter asked her why she cut 4 inches off the end of the roast before cooking it. Mom says that's how her mom taught her to cook a roast.
Daughter asked grandma about this. Grandma told her she cut the end off the roast so it would fit in the cooking pan.
Please Log in or Create an account to join the conversation.
- Skip
-
- Offline
- New Member
- Posts: 2
Please Log in or Create an account to join the conversation.
- Christian Matthieas
-
- Offline
- Premium Member
- Posts: 80
Skip said:And I would like to see an option to completely disable the use of lightbox / pop-ups in the front end editor for K2 items.
Please Log in or Create an account to join the conversation.
- zig zag
-
- Offline
- New Member
- Posts: 10
Hi do you mean the fix to open the editor in a new window by removing the class="modal" etc, if so this doesn't work for me as the tabs still don't work, when you click on the last tab it takes you through to editing it inline as you would do a normal joomla article (frontend), when you finally get to that point everything works as it should. Hence would like to see this option rather than the lightbox or new window etc as there is still too much js going on for it to be compatible with anything other than a basic joomla template.
Please Log in or Create an account to join the conversation.
- Christian Matthieas
-
- Offline
- Premium Member
- Posts: 80
zig zag said:i don't get it... the fix isn't good enough for you guys? The new fix works perfectly... perhaps you are not finding it througout this thread.Hi do you mean the fix to open the editor in a new window by removing the class="modal" etc, if so this doesn't work for me as the tabs still don't work, when you click on the last tab it takes you through to editing it inline as you would do a normal joomla article (frontend), when you finally get to that point everything works as it should. Hence would like to see this option rather than the lightbox or new window etc as there is still too much js going on for it to be compatible with anything other than a basic joomla template.
Please Log in or Create an account to join the conversation.
- zig zag
-
- Offline
- New Member
- Posts: 10
Basically there's a load of javascript errors which I'm unable to resolve even though my template is supposed to be designed for k2 they didn't test it with front end editing, these errors don't occur when you edit inline with the joomla content area, what happens is you click the edit link and the lightbox opens, currently my last tab on the editor box is for the image gallery (this happens whatever the last tab is), if the user clicks on the last tab the page inside the frame reloads to show the editor inside the joomla content area - exactly as if you were editing a joomla article from the front end. If I copy the url from within the iframe (/test/blogs/item/edit/356#) and open it, everything works perfectly see screen shot.
Christian Matthieas said:Wait explain this error in detail because I do not have this problem..
zig zag said:i don't get it... the fix isn't good enough for you guys? The new fix works perfectly... perhaps you are not finding it througout this thread.Hi do you mean the fix to open the editor in a new window by removing the class="modal" etc, if so this doesn't work for me as the tabs still don't work, when you click on the last tab it takes you through to editing it inline as you would do a normal joomla article (frontend), when you finally get to that point everything works as it should. Hence would like to see this option rather than the lightbox or new window etc as there is still too much js going on for it to be compatible with anything other than a basic joomla template.
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
- Posts: 3722
Skip said:Quote:About all this.. I think this happens because the K2 designers are using a hi resolution screen, so for all of them it's normal to get this big window and for us it's annoying but I hope and trust that this "error" will be fixed in the next version.
Mom cuts about 4 inches off of the end of a roast before cooking it.
Puzzled, her daughter asked her why she cut 4 inches off the end of the roast before cooking it. Mom says that's how her mom taught her to cook a roast.
Daughter asked grandma about this. Grandma told her she cut the end off the roast so it would fit in the cooking pan.
Please Log in or Create an account to join the conversation.
- Christian Matthieas
-
- Offline
- Premium Member
- Posts: 80
zig zag said:Hi,Basically there's a load of javascript errors which I'm unable to resolve even though my template is supposed to be designed for k2 they didn't test it with front end editing, these errors don't occur when you edit inline with the joomla content area, what happens is you click the edit link and the lightbox opens, currently my last tab on the editor box is for the image gallery (this happens whatever the last tab is), if the user clicks on the last tab the page inside the frame reloads to show the editor inside the joomla content area - exactly as if you were editing a joomla article from the front end. If I copy the url from within the iframe (/test/blogs/item/edit/356#) and open it, everything works perfectly see screen shot.Christian Matthieas said:Wait explain this error in detail because I do not have this problem..zig zag said:i don't get it... the fix isn't good enough for you guys? The new fix works perfectly... perhaps you are not finding it througout this thread.Hi do you mean the fix to open the editor in a new window by removing the class="modal" etc, if so this doesn't work for me as the tabs still don't work, when you click on the last tab it takes you through to editing it inline as you would do a normal joomla article (frontend), when you finally get to that point everything works as it should. Hence would like to see this option rather than the lightbox or new window etc as there is still too much js going on for it to be compatible with anything other than a basic joomla template.
Please Log in or Create an account to join the conversation.
- zig zag
-
- Offline
- New Member
- Posts: 10
Christian Matthieas said:Sounds like an installation error... try installing K2 again... or try installing an older version of k2 like 2.3... that might do the trick... if you find that 2.3 works then something your template is using is not meshing with the new version. As well, make sure your template is all up to date. Let us know what you find out.
zig zag said:Hi,Basically there's a load of javascript errors which I'm unable to resolve even though my template is supposed to be designed for k2 they didn't test it with front end editing, these errors don't occur when you edit inline with the joomla content area, what happens is you click the edit link and the lightbox opens, currently my last tab on the editor box is for the image gallery (this happens whatever the last tab is), if the user clicks on the last tab the page inside the frame reloads to show the editor inside the joomla content area - exactly as if you were editing a joomla article from the front end. If I copy the url from within the iframe (/test/blogs/item/edit/356#) and open it, everything works perfectly see screen shot.Christian Matthieas said:Wait explain this error in detail because I do not have this problem..zig zag said:i don't get it... the fix isn't good enough for you guys? The new fix works perfectly... perhaps you are not finding it througout this thread.Hi do you mean the fix to open the editor in a new window by removing the class="modal" etc, if so this doesn't work for me as the tabs still don't work, when you click on the last tab it takes you through to editing it inline as you would do a normal joomla article (frontend), when you finally get to that point everything works as it should. Hence would like to see this option rather than the lightbox or new window etc as there is still too much js going on for it to be compatible with anything other than a basic joomla template.
Please Log in or Create an account to join the conversation.
- zig zag
-
- Offline
- New Member
- Posts: 10
Please Log in or Create an account to join the conversation.
- Odin Mayland
-
- Offline
- Platinum Member
- Posts: 404
Is the Save button going to be changed to Save and Close?
If this is a bug, then does anyone have a workaround?
Please Log in or Create an account to join the conversation.
- Christian Matthieas
-
- Offline
- Premium Member
- Posts: 80
modernmagic said:I am using K2 version 2.4.1Is the Save button going to be changed to Save and Close?If this is a bug, then does anyone have a workaround?
Please Log in or Create an account to join the conversation.
- Jasper Newton
-
Topic Author
- Offline
- Senior Member
- Posts: 58
Please Log in or Create an account to join the conversation.
- Odin Mayland
-
- Offline
- Platinum Member
- Posts: 404
Please Log in or Create an account to join the conversation.