How to add a template button to the cmenu

in the cmenu settings you can’t add anything but delete

CMenu hasn’t been updated in a long time. You may want to try the Editing Toolbar plugin instead (which was formed from cmenu).