GetSimple Support Forum
Hook request for page delete - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Feature Requests (http://get-simple.info/forums/forumdisplay.php?fid=7)
+--- Thread: Hook request for page delete (/showthread.php?tid=1234)



Hook request for page delete - RobA - 2011-01-11

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>


Hook request for page delete - mvlcek - 2011-01-19

I definitely support this request.


Hook request for page delete - ccagle8 - 2011-02-01

http://code.google.com/p/get-simple-cms/source/detail?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!


Hook request for page delete - mvlcek - 2011-02-01

ccagle8 Wrote:http://code.google.com/p/get-simple-cms/source/detail?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.


Hook request for page delete - RobA - 2011-02-02

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>


Hook request for page delete - ccagle8 - 2011-02-02

http://code.google.com/p/get-simple-cms/source/browse/trunk/admin/inc/configuration.php#19


Hook request for page delete - RobA - 2011-02-02

ccagle8 Wrote:http://code.google.com/p/get-simple-cms/source/browse/trunk/admin/inc/configuration.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>


Hook request for page delete - ccagle8 - 2011-02-02

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


Hook request for page delete - ccagle8 - 2011-02-02

or you could just strip off the last character is you find the version to be alphanumeric?