- Posts: 102
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- [SOLVED] Interested in creating a plugin, which would be after saving
[SOLVED] Interested in creating a plugin, which would be after saving
- German Levi
-
Topic Author
- Offline
- Premium Member
Less
More
9 years 3 hours ago #154426
by German Levi
Interested in creating a plugin, which would be after saving was created by German Levi
Hi all! Long ago I did not ask on the forum! Interested in creating a plugin, which would be after saving, send a POST request to an external address. In the request body will be url material that is retained. Maybe there's a layout, a skeleton plugin for K2?
Please Log in or Create an account to join the conversation.
- JoomlaWorks Support Team
-
- Offline
- Elite Member
Less
More
- Posts: 169
9 years 1 hour ago #154429
by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Interested in creating a plugin, which would be after saving
Please Log in or Create an account to join the conversation.
- German Levi
-
Topic Author
- Offline
- Premium Member
Less
More
- Posts: 102
9 years 1 hour ago #154430
by German Levi
Replied by German Levi on topic Interested in creating a plugin, which would be after saving
and where to get the function name of the event, which fulfills after saving the material?
Please Log in or Create an account to join the conversation.
- JoomlaWorks Support Team
-
- Offline
- Elite Member
Less
More
- Posts: 169
9 years 28 minutes ago #154432
by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Interested in creating a plugin, which would be after saving
The function is
function onAfterK2Save(&$item, $isNew) { ....
}
Please Log in or Create an account to join the conversation.
- German Levi
-
Topic Author
- Offline
- Premium Member
Less
More
- Posts: 102
8 years 11 months ago #154434
by German Levi
Replied by German Levi on topic Interested in creating a plugin, which would be after saving
inside this function I can write a procedure of sending a POST request to the address? how to get ready the url of the material that is stored?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 years 11 months ago #154477
by Krikor Boghossian
Replied by Krikor Boghossian on topic Interested in creating a plugin, which would be after saving
You can use(when something is rendered in the front-end) in order to see the item object's available properties.
var_dump($item);
Please Log in or Create an account to join the conversation.
- German Levi
-
Topic Author
- Offline
- Premium Member
Less
More
- Posts: 102
8 years 11 months ago #154782
by German Levi
Replied by German Levi on topic Interested in creating a plugin, which would be after saving
thanks, Krikor
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 years 11 months ago #154792
by Krikor Boghossian
Replied by Krikor Boghossian on topic Interested in creating a plugin, which would be after saving
Let me know if you need anything else.
Please Log in or Create an account to join the conversation.
- German Levi
-
Topic Author
- Offline
- Premium Member
Less
More
- Posts: 102
8 years 11 months ago #154802
by German Levi
Replied by German Levi on topic Interested in creating a plugin, which would be after saving
ОК!
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- [SOLVED] Interested in creating a plugin, which would be after saving