Page 1 of 1

editing admin templates

Posted: Wed Aug 10, 2005 10:22 am
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

Re: editing admin templates

Posted: Wed Aug 10, 2005 5:18 pm
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___

Re: editing admin templates

Posted: Wed Aug 10, 2005 7:08 pm
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.