Hello,
I am wanting to add front-end edit functionality that will allow a user to edit a category. I know this is not currently part of K2.
I was wondering if someone can give me an explanation of how the front-end item edit works so I can use it as a starting point.
I realize I will need to create a categoryform.php (itemform.php equivalent) that will sit in the default view (as an override). I will also need to add the category edit links, similar to item edit links to the required k2 template views.
The main question I have is regarding the actual link in question.
For the item edit the link displays as follows:
domain/index.php/item-alias/item/edit/item-id?tmpl=component
(The portions in bold change per link/site etc)
What I would like to know if possible is where this link is directed, meaning what is directing the link to the itemform.php file to actually edit it?
The end goal I am trying to achieve is to allow a user to edit a category name & alias, description and image. I don't need to worry about category settings or the rest. I do know I can make the necessary changes to the the categoryform.php file I will need to make.
Thanks to anyone who can help shed some light on where to start with this some what lofty goal. I will provide any additional info/details needed.
I am wanting to add front-end edit functionality that will allow a user to edit a category. I know this is not currently part of K2.
I was wondering if someone can give me an explanation of how the front-end item edit works so I can use it as a starting point.
I realize I will need to create a categoryform.php (itemform.php equivalent) that will sit in the default view (as an override). I will also need to add the category edit links, similar to item edit links to the required k2 template views.
The main question I have is regarding the actual link in question.
For the item edit the link displays as follows:
domain/index.php/item-alias/item/edit/item-id?tmpl=component
(The portions in bold change per link/site etc)
What I would like to know if possible is where this link is directed, meaning what is directing the link to the itemform.php file to actually edit it?
The end goal I am trying to achieve is to allow a user to edit a category name & alias, description and image. I don't need to worry about category settings or the rest. I do know I can make the necessary changes to the the categoryform.php file I will need to make.
Thanks to anyone who can help shed some light on where to start with this some what lofty goal. I will provide any additional info/details needed.