how to add something to page edit options

Permalink
Hello

when you hover over the 'Edit' in the top left corner of a page or when you click on a page in the sitemap you get things like Properties, Design, Permissions, Versions, ...

is it possible to add something to these lists and what is the best way to do so to make it future proof.

As an alternative, is it possible to extend / override the popup page you get when you click Properties and add functionality to that page?

I want to do custom stuff on attributes of a specific page type.

thank you

Gr

Marco

stmarco
 
JohntheFish replied on at Permalink Best Answer Reply
JohntheFish
Have a look back through denied pull requests on github. There was a pull where mlocati added some menu items to the popup that may help illustrate what you want to do (but it unfortunately got turned down).

It will probably involve rebuilding a custom ccm.app.js file.

There is also a black addon to show block IDs superimposed for edit mode by newcolours:
http://www.concrete5.org/marketplace/addons/automatic-block-identif...

You may be able to piggy-back onto the way that works.

You could also consider adding your own button to to the top toolbar. Usually much easier that adding into existing dialogs and several addons do it.
stmarco replied on at Permalink Reply
stmarco
Thanks John

meanwhile i've been looking at the code behind the dialogues but your option to add a button on the top tool bar looks like the best idea.

Can you point me in the right direction (or example of an addon) how to put a button in the top tool bar?

thanks

gr

Marco
JohntheFish replied on at Permalink Reply
JohntheFish
A listing from the marketplace
http://www.concrete5.org/marketplace/addons/-/view/?submit_search=1...

(at least 3 relevant including one of mine)
stmarco replied on at Permalink Reply
stmarco
Thanks John

i will check it out :)

Gr

Marco