How can you alter core features with a custom module?

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
User avatar
goldleader
New Member
New Member
Posts: 8
Joined: Mon Sep 28, 2009 8:22 am

How can you alter core features with a custom module?

Post by goldleader »

I would like to create a module which would add some extra functions when a new page is made. So I would like to make the module add a checkbox to the page edit form which would run a bit of my own code when submit or apply is pressed. But I don't know where to start.

I searched all over but couldn't find anything besides a bit in the faq about modifying language files with modules but it was a bit implicit.

I don't want to alter the hard code directly as it would become an issue when the site needed updating.

Any help would be appreciated.
Last edited by Anonymous on Fri Aug 20, 2010 12:04 am, edited 1 time in total.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm
Location: Comox Valley, BC

Re: How can you alter core features with a custom module?

Post by Nullig »

You could use the AdvancedContent module to add a checkbox, and then use the Event Manager to run your code (UDT), if the proper entry is in the block.

Nullig
Last edited by Nullig on Fri Aug 20, 2010 4:10 am, edited 1 time in total.
tomgsd
Forum Members
Forum Members
Posts: 74
Joined: Tue Feb 12, 2008 10:00 am

Re: How can you alter core features with a custom module?

Post by tomgsd »

You could also register an additional content type like the ones in the Cataloger module..
Green Sheep Design Ltd. - www.greensheep.co.uk
Post Reply

Return to “Developers Discussion”