Keyword

[SOLVED] Interested in creating a plugin, which would be after saving

  • German Levi
  • German Levi's Avatar Topic Author
  • Offline
  • Premium Member
More
7 years 10 months ago #154426 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
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Elite Member
More
7 years 10 months ago #154429 by JoomlaWorks Support Team
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
  • German Levi's Avatar Topic Author
  • Offline
  • Premium Member
More
7 years 10 months ago #154430 by German Levi
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
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Elite Member
More
7 years 10 months 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) { ....
}

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
  • German Levi's Avatar Topic Author
  • Offline
  • Premium Member
More
7 years 10 months ago #154434 by German Levi
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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 10 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
var_dump($item);
(when something is rendered in the front-end) in order to see the item object's available properties.

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
  • German Levi's Avatar Topic Author
  • Offline
  • Premium Member
More
7 years 10 months ago #154782 by German Levi
thanks, Krikor

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 #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.

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
  • German Levi's Avatar Topic Author
  • Offline
  • Premium Member
More
7 years 10 months ago #154802 by German Levi
ОК!

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


Powered by Kunena Forum