Posts: 290
Threads: 26
Joined: Oct 2010
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>
Posts: 2,094
Threads: 54
Joined: Jan 2011
I definitely support this request.
Posts: 1,848
Threads: 86
Joined: Aug 2009
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!
Posts: 2,094
Threads: 54
Joined: Jan 2011
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.
Posts: 290
Threads: 26
Joined: Oct 2010
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>
Posts: 1,848
Threads: 86
Joined: Aug 2009
-
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!
Posts: 290
Threads: 26
Joined: Oct 2010
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>
Posts: 1,848
Threads: 86
Joined: Aug 2009
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!
Posts: 1,848
Threads: 86
Joined: Aug 2009
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!