News 2.3 compulsory fields

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.
Post Reply
qzy
Forum Members
Forum Members
Posts: 48
Joined: Sun Feb 05, 2006 8:27 am

News 2.3 compulsory fields

Post by qzy »

Hi all,


is there a way to define the compulsory fields for a news article? As I saw, by default the 'content' field is compulsory, however I'd like to make it ommitable. Though this check seems to be hardcoded. Is that it, or there's a parameter somewhere around?



Thanks,
Balint
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: News 2.3 compulsory fields

Post by calguy1000 »

No the content field is mandatory.  The summary field is optional.  You can however use some smarty logic in your template to hide the content field if you don't want it.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
qzy
Forum Members
Forum Members
Posts: 48
Joined: Sun Feb 05, 2006 8:27 am

Re: News 2.3 compulsory fields

Post by qzy »

Well, the problem is that sometimes it should be filled. So I'll need to change the logic in the code, which means that the system won't be updateable. :-(

Or, must I do....?  :P


Balint
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: News 2.3 compulsory fields

Post by calguy1000 »

Yeah, I've noticed that for quick and dirty news articles it can some times be redundant to have anything in content.
but I've been loathe to modify it yet.  To do it properly would involve adding more preferences into the admin panel, and well.... it's not been a huge priority

So to do what you want, you will need to modify the source in probably two files.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
qzy
Forum Members
Forum Members
Posts: 48
Joined: Sun Feb 05, 2006 8:27 am

Re: News 2.3 compulsory fields

Post by qzy »

And besides that, pagelimit should also appear on the admin interface...

OK, I'll see what I can do.



Balint
Post Reply

Return to “CMSMS Core”