- Posts: 20
COMMUNITY FORUM
Edit item from frontend
- mauro calvo
-
Topic Author
- Offline
- Junior Member
if I edit an item from frontend a new modal window is open, I save and close the item but the modal window does not close and I'm not able to close it and come back to the previous window.
I' not skilled on php and css.
K2 v2.7.1 | Copyright © 2006-2016 JoomlaWorks Ltd.
Joomla! 3.6.2
Any help is really appreciated
Best regards.
mauro
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.
- mauro calvo
-
Topic Author
- Offline
- Junior Member
- Posts: 20
DEV version installed.
Now I have created a menu to manage item for logged user:
1) insert a new k2 item - Item edit form - index.php?option=com_k2&view=item&layout=itemform&task=add
2) show my K2 item - Latest items from (one or more) users or categories - index.php?option=com_k2&view=latest&layout=latest
I have created two users for test, they have the Joomla rights Registered
If I try to insert a new item for the second user a new window will be open and contain Error: 403 - You are not authorized to view this resource
first user, k2 rights (group)
Post comments YES
Front-end item editing YES
Add items YES
Edit own items YES
Edit any item YES
Publish items YES
Allow editing of already published items YES
Assign group permissions to these categories
Articoli da Approvare
Articoli approvati
second user, he has the Joomla rights Registered
and the k2 rights (group)
Assign permissions for this group
Post comments Yes
Front-end item editing Yes
Add items Yes
Edit own items Yes
Edit any item No
Publish items Yes
Allow editing of already published items No
Assign permissions for this categories
Articoli da Approvare
K2 access level for K2 items is pubblic
menu: Pre-selected category for K2 is Articoli da Approvare
If you need more info let me know.
best regards
mauro
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.
- mauro calvo
-
Topic Author
- Offline
- Junior Member
- Posts: 20
yes is a Joomla enviroment error.
best regards
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Paste the error or even better a screenshot if you need any further assistance.
Please Log in or Create an account to join the conversation.
- mauro calvo
-
Topic Author
- Offline
- Junior Member
- Posts: 20
there was my error, no correct rights for user in K2 enviroment.
Now there is a little problem, if I create a new article The Close button does not close the window.
Html code:
<tr>
<td id="toolbar-save" class="button">
<a class="toolbar" onclick="Joomla.submitbutton('save'); return false;" href="#">
</td>
<td id="toolbar-cancel" class="button">
<a class="toolbar" href="#">
</td>
</tr>
</tbody>
Thank you very much for your patience and support
Best regards.
mauro
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Unfortunately I cannot verify this issue as you can see with the default template the code is the same -> imgur.com/a/WnY1t and it is working fine. Are you sure there are no more JS errors?
Please Log in or Create an account to join the conversation.
- mauro calvo
-
Topic Author
- Offline
- Junior Member
- Posts: 20
I'm not skilled in this enviromen,
I try to explain my steps:
request to add item, a new parent window is open
from firebug I activated the console and reload the page
this is the output:
ReferenceError: jQuery is not defined
www.gressoneyskiinstitut.it/index.php?option=com_jce&view=editor&layout=editor&task=loadlanguages&lang=en&component_id=10170&d3df73bc308c14c3719f2ecd517bd3f9=1
Line 1
ReferenceError: tinyMCE is not defined
www.gressoneyskiinstitut.it/index.php?option=com_jce&view=editor&layout=editor&task=loadlanguages&lang=en&component_id=10170&d3df73bc308c14c3719f2ecd517bd3f9=1
Line 1
L’utilizzo di getAttributeNode() è deprecato. Al suo posto utilizzare getAttribute().
www.gressoneyskiinstitut.it/cache/rokbooster/dac0d7a3006c131bbbc976fb91d995c2.php
Line 108
SyntaxError: missing ) after argument list
www.gressoneyskiinstitut.it/inserisci-articolo.html
Line 39
ReferenceError: RokBoxSettings is not defined
www.gressoneyskiinstitut.it/cache/rokbooster/dac0d7a3006c131bbbc976fb91d995c2.php
Line 583
TypeError: $K2(...).accordion is not a function
www.gressoneyskiinstitut.it/cache/rokbooster/dac0d7a3006c131bbbc976fb91d995c2.php
Line 583
I empty the console and press Close
No All, Errors or Warning are displayed
best regards
mauro
Please Log in or Create an account to join the conversation.
- mauro calvo
-
Topic Author
- Offline
- Junior Member
- Posts: 20
could you help me to solve the question, I'm developing a site for a school.
We need manage items like a magazine, add items, modify items and publish items.
I'm very trouble to write in english.
best regards
mauro
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
You can load jQuery from K2's settings.
Let me know if that does the trick.
Please Log in or Create an account to join the conversation.
- mauro calvo
-
Topic Author
- Offline
- Junior Member
- Posts: 20
problem solved, it was the rokbooster plugin by Rockettheme,
plugin disabled all is woking fine.
best regards
mauro
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.