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

Extending HTML buttons, use an extension?

Development and Programming

Phil J Leitch's avatar
Phil J Leitch
85 posts
17 years ago
Phil J Leitch's avatar Phil J Leitch

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.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen

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

       
Phil J Leitch's avatar
Phil J Leitch
85 posts
17 years ago
Phil J Leitch's avatar Phil J Leitch

Yes, I do know about changing those HTML buttons. I am talking about the ones that follow immediately after the editable buttons (Link,Email,Image).

Essentially I want a duplicate Link button that has a different set of input fields than the current Link button.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen

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

       

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.