- 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
7 years 10 months 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
7 years 10 months ago #154429
by JoomlaWorks Support Team
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks Support Team on topic Interested in creating a plugin, which would be after saving
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- German Levi
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 102
7 years 10 months 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
7 years 10 months ago #154432
by JoomlaWorks Support Team
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks Support Team on topic Interested in creating a plugin, which would be after saving
The function is
function onAfterK2Save(&$item, $isNew) { ....
}
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- German Levi
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 102
7 years 10 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
7 years 10 months ago #154477
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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);
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- German Levi
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 102
7 years 10 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
7 years 10 months ago #154792
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Interested in creating a plugin, which would be after saving
Let me know if you need anything else.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- German Levi
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 102
7 years 10 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