editing admin templates

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
mmv

editing admin templates

Post by mmv »

hi,

i'm trying to modify the admin templates - i'd like to re-arrange some fields and hide other i don't need for my project.
specifically, i want to change addcontent.php and editcontent.php.

i've looked around the project structure for some time, but i wasn't able to find a template page for the admin areas...
where do i find it?

also - i couldn't find the specific TinyMCE references to change it from the full editor to just the simple one.

thanks in advance!

mmv
User avatar
sjg
Power Poster
Power Poster
Posts: 310
Joined: Thu Jan 27, 2005 5:11 pm

Re: editing admin templates

Post by sjg »

The admin is one of the weaker aspects of CMS. At least the parts I wrote...

So there is no set of template files, per se. The admin all lives in the CMS_ROOT/admin directory. The various functions are split out into all those files. Most of them should be reasonably self-evident from the file names.

There is a certain amount of power in the admin theming setup. Take a look at CMS_ROOT/lib/classes/class.admintheme.inc.php, and what happens in the default theme folder (CMS_ROOT/admin/themes/default).

To create a new theme, you could just copy that directory, and start customizing. We should have another theme available so people can see how the theming system works, but I haven't had time to make one.

Good Luck!
___Samuel___
Many modules available from the http://dev.cmsmadesimple.org
The CMS Made Simple Developer Cookbook is now available from Packt Publishers!
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: editing admin templates

Post by Ted »

As far as the content editing itself, it's handled directly by the content type itself.  Look in lib/contenttypes/Content.inc.php.  There is a EditAsArray function, which displays the fields that are used in the add/edit pages.
Locked

Return to “CMSMS Core”