Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hook request for page delete
#1
Can a hook for page delete be aded?

changedata-save
fires for new pages and saved pages, but doesn't seem to fire on page delete (at least in my installation).

Thanks,

-Rob A>
Reply
#2
I definitely support this request.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#3
http://code.google.com/p/get-simple-cms/...tail?r=278

Is this where you guys had expected to see it? Can you see if it does what you are expecting it to? Thanks!
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#4
ccagle8 Wrote:http://code.google.com/p/get-simple-cms/...tail?r=278

Is this where you guys had expected to see it? Can you see if it does what you are expecting it to? Thanks!

Yes, it's ok - currently I just need it for invalidating caches for navigation and search.

In the future (as already mentioned in another threat) I'd like to have the hook functions receiving the important information ($id in this case) as parameters instead of having to access global variables with the fear that they will change in the next release.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#5
That looks right to me too.

What is the global for the version number so I can conditionally use that hood for >= the appropriate version?

-Rob A>
Reply
#6
http://code.google.com/p/get-simple-cms/...ion.php#19
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#7
ccagle8 Wrote:http://code.google.com/p/get-simple-cms/...ion.php#19

Thanks. Any change that could be made something that could be checked simply? i.e. I want to check the version is >= something? the beta text makes that awkward.

-Rob A>
Reply
#8
i think you could check to see if there is a letter (i can change β to B) then its beta - and your check wouldnt really need to run at that point
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#9
or you could just strip off the last character is you find the version to be alphanumeric?
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply




Users browsing this thread: 1 Guest(s)