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
News 2.3 compulsory fields
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: News 2.3 compulsory fields
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.
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.
Re: News 2.3 compulsory fields
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
Or, must I do....?
Balint
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: News 2.3 compulsory fields
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.
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.
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.
Re: News 2.3 compulsory fields
And besides that, pagelimit should also appear on the admin interface...
OK, I'll see what I can do.
Balint
OK, I'll see what I can do.
Balint

