Page 1 of 1
News 2.3 compulsory fields
Posted: Sat Jul 21, 2007 3:37 pm
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
Re: News 2.3 compulsory fields
Posted: Sat Jul 21, 2007 3:41 pm
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.
Re: News 2.3 compulsory fields
Posted: Sat Jul 21, 2007 3:49 pm
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....?
Balint
Re: News 2.3 compulsory fields
Posted: Sat Jul 21, 2007 3:58 pm
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.
Re: News 2.3 compulsory fields
Posted: Mon Jul 23, 2007 5:43 am
by qzy
And besides that, pagelimit should also appear on the admin interface...
OK, I'll see what I can do.
Balint