on_after_save event

6 năm 6 tháng trước #1647 bởi Jesper Dinesen
on_after_save event was created by Jesper Dinesen
Does anybody have an example of a plugin with on_after_save event etc. I need to modify the code for my plugin, but I would love not to have to hack it !

Jesper

Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.

6 năm 6 tháng trước #1650 bởi Juan Sánchez
Replied by Juan Sánchez on topic on_after_save event
Hello,
Just locate a Joomla plugin similar to yours, in the docs you can find links with examples to the code. You can copy the plugin directory structure, rename it and change its xml configuration parameters. Then go to your backend, extensions, discover and install it. Now you have your own plugin and you can do as many changes you want.

Hope it helps.

Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.

6 năm 6 tháng trước #1651 bởi Jesper Dinesen
Replied by Jesper Dinesen on topic on_after_save event
Hi Juan,

I get this, the bigger problem I have is how do I make it an on_after_save event on one of my components I created here... how will my plugin know about the component etc ?

Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.

6 năm 6 tháng trước #1652 bởi Juan Sánchez

Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.

2 năm 4 tháng trước #9932 bởi Pete
Replied by Pete on topic on_after_save event
It would help to know the Component Builder function names..

In another plugin I built for RS forms, the save event was ..

public function rsfp_f_onAfterStoreSubmissions($args) {

}

what would the Component Builder call name be (assuming it would be based on the component form name somehow ?

This code comes from the CB administrator > models > modelname.php

// Trigger the before save event.
$result = $dispatcher->trigger($this->event_before_save, array($context, &$table, true));

..............

// Trigger the after save event.
$dispatcher->trigger($this->event_after_save, array($context, &$table, true));

Maybe somebody who knows how to work out the function name from that code - if indeed it does what you want - which is to hook a call in after the save process..

Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.

2 năm 3 tháng trước #9945 bởi Ingin Ibiza SL
Replied by Ingin Ibiza SL on topic on_after_save event
maybe you are lookong the postSaveHook function
It's called after save an element.
Những thành viên sau(s) đã Cảm ơn: Pete

Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.

Thời gian tải trang: 0.164 giây
Powered by Kunena Forum

We use cookies so that you can place orders and we can provide a better service. You can control the use of cookies at the individual browser level. If you reject cookies, you may still use our website, but your ability to use some features or areas of our website may be limited.