We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Where’d all the hooks go? (EE2)

Development and Programming

The Nerdery's avatar
The Nerdery
16 posts
15 years ago
The Nerdery's avatar The Nerdery

deleted

       
airways's avatar
airways
154 posts
15 years ago
airways's avatar airways

Attached: please find replacement for inheritance.

Mostly I just wanted to see if it could be done.

Also I don’t like it when people tell me I can’t do something I want to do. 😉

I’m not saying using this is a good idea, but if you want show_full_control_panel_end back, here it is.

Updated: fixed a pretty serious problem with the css controller Updated: latest version now at http://devot-ee.com/add-ons/wallace/ - fixes similar problem with javascript controller

       
Laisvunas's avatar
Laisvunas
879 posts
15 years ago
Laisvunas's avatar Laisvunas

You are genius!

If EllisLab will not really restore show_full_control_panel_end but will introduce some weak substitute for it I will certainly use your solution!

       
Bjørn Børresen's avatar
Bjørn Børresen
629 posts
15 years ago
Bjørn Børresen's avatar Bjørn Børresen
Attached: please find replacement for inheritance. Mostly I just wanted to see if it could be done. Also I don’t like it when people tell me I can’t do something I want to do. 😉

Don’t know if you’re referring to my “there is no replacement for inheritance” statement but I was talking in general (inheritance vs. hooks). This was sort of a OT discussion I guess that started when Derek mentioned introducing “final” (which would be a problem for many of us who rely on inheritance to avoid core-hacking).

       
airways's avatar
airways
154 posts
15 years ago
airways's avatar airways
Attached: please find replacement for inheritance. Mostly I just wanted to see if it could be done. Also I don’t like it when people tell me I can’t do something I want to do. 😉
Don’t know if you’re referring to my “there is no replacement for inheritance” statement but I was talking in general (inheritance vs. hooks). This was sort of a OT discussion I guess that started when Derek mentioned introducing “final” (which would be a problem for many of us who rely on inheritance to avoid core-hacking).

Oh yes yes I know, no worries. I was just being tounge-in-cheek. 😉

Honestly though I just think that there are things that are just easier to do with some simple text replacement. Overriding classes works for a lot of the broad strokes but when it comes to more subtle changes, and when it comes to things that the API designers haven’t thought of, it’s nice to have something to fall back on.

Personally I like the model of having a system that just lets you do whatever you want - be it show_full_control_panel_end, mix-ins, or Extends keywords (http://docs.realsoftware.com/index.php/Extends) or other such things that a lot of purists might consider “hacks”.

The bottom line is they let you get your job done and they let you do things that the original designers of a system might not have thought of. That’s really all I care about.

And to be honest? I’ve never had a problem with extensions competing for show_full_control_panel_end that I couldn’t solve pretty quickly. I would tend to think that anyone who says that it is unworkable probably just hasn’t done very many real-world EE implementations. It is almost never an issue.

       
Laisvunas's avatar
Laisvunas
879 posts
15 years ago
Laisvunas's avatar Laisvunas
The bottom line is they let you get your job done and they let you do things that the original designers of a system might not have thought of. That’s really all I care about. And to be honest? I’ve never had a problem with extensions competing for show_full_control_panel_end that I couldn’t solve pretty quickly. I would tend to think that anyone who says that it is unworkable probably just hasn’t done very many real-world EE implementations. It is almost never an issue.

Perfectly said.

       
Brian Litzinger's avatar
Brian Litzinger
704 posts
15 years ago
Brian Litzinger's avatar Brian Litzinger

airways, you’re a genius. Very clever name too.

       
airways's avatar
airways
154 posts
15 years ago
airways's avatar airways

Thanks Brian 😊

Updated: fixed a pretty serious problem with the css controller Updated: latest version now at http://devot-ee.com/add-ons/wallace/ - fixes similar problem with javascript controller

       
Laisvunas's avatar
Laisvunas
879 posts
15 years ago
Laisvunas's avatar Laisvunas

Hi airways,

Please, post this add-on on devot-ee.com!

       
airways's avatar
airways
154 posts
15 years ago
airways's avatar airways

Posted 😊

       
johnwbaxter's avatar
johnwbaxter
651 posts
15 years ago
johnwbaxter's avatar johnwbaxter

Just had a read of the sauce code, very clever, and very very funny.

Very nicely done!

       
dreamscape's avatar
dreamscape
7 posts
15 years ago
dreamscape's avatar dreamscape
You can modify the Publish form without those hooks, though you will use different methods and perhaps different add-ons than you did in 1.x.

Derek, I believe several people in this thread have been waiting on you for months to enlighten them as to just exactly how they’re supposed to go about modifying the Publish form in EE 2 without those hooks and without extending the EE core (which they’ve been told by EllisLabs in this very thread to not do since it would cause a massive mess if every add-on were to do that).

[Mod Edit: Removed Profanity. These are professional forums, please use professional language.]

       
nathanpitman's avatar
nathanpitman
531 posts
about 15 years ago
nathanpitman's avatar nathanpitman

It’s great that we have show_full_control_panel_end back via this extension but performing a simple task such as adding a custom column to the edit screen for a client is now an arduous task. Previously there were a couple of hooks that allowed this with relative ease… now I don’t even know where to start. :/

       
airways's avatar
airways
154 posts
about 15 years ago
airways's avatar airways

Hi Nathan,

It looks like you might be able to override the core Table library and create your own that you can use to modify the edit listing. I’ll look into this a bit more once I get into the office. You obviously have to be careful with this sort of thing - but it does look possible without even any hacks.

       
nathanpitman's avatar
nathanpitman
531 posts
about 15 years ago
nathanpitman's avatar nathanpitman

ooh, that would be awesome. I did have a shot at using the Wallace Ext with the latest EE build but I just got a bunch of errors in the CP when trying to access the extensions screen. :/

       
1 2 3 4

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.