Keyword

Edit item from frontend

  • mauro calvo
  • mauro calvo's Avatar Topic Author
  • Offline
  • Junior Member
More
7 years 10 months ago #158979 by mauro calvo
Edit item from frontend was created by mauro calvo
Hi,

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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 10 months ago #159012 by Krikor Boghossian
Replied by Krikor Boghossian on topic Edit item from frontend
Hello,

Can you try installing the DEV version?
github.com/getk2/k2

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • mauro calvo
  • mauro calvo's Avatar Topic Author
  • Offline
  • Junior Member
More
7 years 10 months ago #159032 by mauro calvo
Replied by mauro calvo on topic Edit item from frontend
Hello,

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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 10 months ago #159038 by Krikor Boghossian
Replied by Krikor Boghossian on topic Edit item from frontend
Check under the console tab of your browser's developer tools for any JS errors.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • mauro calvo
  • mauro calvo's Avatar Topic Author
  • Offline
  • Junior Member
More
7 years 10 months ago #159042 by mauro calvo
Replied by mauro calvo on topic Edit item from frontend
Hello,

yes is a Joomla enviroment error.

best regards

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 10 months ago #159044 by Krikor Boghossian
Replied by Krikor Boghossian on topic Edit item from frontend
Did you manage to solve it?
Paste the error or even better a screenshot if you need any further assistance.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • mauro calvo
  • mauro calvo's Avatar Topic Author
  • Offline
  • Junior Member
More
7 years 10 months ago #159054 by mauro calvo
Replied by mauro calvo on topic Edit item from frontend
Hi,

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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 10 months ago #159062 by Krikor Boghossian
Replied by Krikor Boghossian on topic Edit item from frontend
Hello Mauro,

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?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • mauro calvo
  • mauro calvo's Avatar Topic Author
  • Offline
  • Junior Member
More
7 years 10 months ago #159065 by mauro calvo
Replied by mauro calvo on topic Edit item from frontend
Hello,

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
  • mauro calvo's Avatar Topic Author
  • Offline
  • Junior Member
More
7 years 10 months ago #159071 by mauro calvo
Replied by mauro calvo on topic Edit item from frontend
Hi Krikor,

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.


Powered by Kunena Forum