how do i remove the content field validation??

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
boyan08

how do i remove the content field validation??

Post by boyan08 »

Hi everybody.

I want to get the admin interface a bit under control. I have handled to assign every input in the "new content" page (addcontent.php) a unique class. Now i would like to not diplay the content text area (css:display: none; of coarse), and work only with content blocks because i can reorder and rename them.

My question is, how can i do it so, that its not necessary to write something in the content text area and work only with content blocks? I want simply to avoid the message "no content given!" and to make it possible to leave the field empty. I hope you understand me. Sorry for my english. I appreciate any help.

When Im ready with this project, the admin interface should be under full control, i will share my work, if I make it. I belive the biggest problem of cmsms is its admin interface which is not applicable for end consumers ( My boss rather give me a new task for updating a page in the bug tracker and wait a week than deal with cmsms, though its not even that bad).

Thanks and greetings from Sofia/Vienna
alby

Re: how do i remove the content field validation??

Post by alby »

boyan08 wrote: My question is, how can i do it so, that its not necessary to write something in the content text area and work only with content blocks? I want simply to avoid the message "no content given!" and to make it possible to leave the field empty. I hope you understand me. Sorry for my english. I appreciate any help.
Empty no but (untested) a quick hack can be:
Site Admin > Page Defaults > Add   in Content field

now Content have a space in content when you add a new page (you must check if Tiny drop this....  :-\)

Alby
Post Reply

Return to “Developers Discussion”