I would like to know if the proper way to extend the HTML buttons would be with an extension.
What I’d like is to add a variation of the Link tab where I can add an Amazon link. I actually modified cp.publish.php and achieved what I was looking to do, but then figured this was a poor way to go about it because I don’t want to make that change every time I update EE.
So the question is would an extension be the proper way to do this and what hook would I use? This would be my first try at developing an extension so any help would be greatly appreciated.
Thanks.
Hi Phil,
Not entirely certain what you are trying to do here but you do know that you can add new HTML buttons (if I am understanding correctly?) without having to use an extension don’t you by going to :
Admin->Weblog Administration->Default HTML Buttons
You can then modify existing buttons or add new ones in there.
Not entirely certain what you are trying to achieve though so this may or may not be helpful to you but let us know exactly what you are trying to do and then if this isn’t good enough then we will have a better idea of what you need.
Best wishes,
Mark
Ah I see what you mean now. Hmm not too sure on that one I’m afraid. You could hack the core file obviously but probably not the best way to go although now that 1.6.3 as far as I know is the last version of this branch may not be the worst thing ever to do or otherwise you are going to have to take the control panel hook that allows you to add in a new link where those buttons are spat out. Not to sure how that kind of thing is achieved though. Perhaps might be an idea to take a look at another extension that adds things like this into the control panel and get an idea from one of those.
I’m also positive that you should get loads of people coming into this thread saying how you can go about this kind of thing.
Sorry I got the wrong end of the stick on this one but I’m sure someone will come in and let you know how to go about this.
Best wishes,
Mark
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.