Hi Peter,
While trying to update an entry, which has categories set to be required, I got this PHP warning:
Warning: Cannot modify header information - headers already sent by (output started at /www/eh5956/public_html/system/extensions/ext.dc_required_category.php:275) in /www/eh5956/public_html/system/core/core.functions.php on line 296
Entry was not updated.
Then I tried to update entries in other weblogs, both those which have categories set to be required and those which have not categories set to be required, and found that it is not possible to update entries at all!
Do you have the latest version from here?
http://www.designchuchi.ch/index.php/blog/comments/required-category-extension
I tested this locally and on a dev server and i have no problems updating entries.
Hi Peter,
I had the latest version, that is, version 1.0.1. Despite of this I downloaded the files from your site, reinstalled extension and the problem disappeared.
So, it seems that with extension is everything OK. I do not find any explanation what might have caused the problem.
Thanks for extension and for the help.
Hi All
I just added another functionality to the extension.
You can now chose, in weblog administration, not only to require a category entry, but also to limit the entry to only one category per post.
Until the extension version gets updated in the official EE repository, you can download it from our website.
Please report back should you encounter any bugs.
Hi Peter,
Limiting to only one category per post is a very useful feature. But it can be similar situations when there might be a need for limiting to no more than two or three etc. categories per post.
It seems to me that instead of to having a pair of radio boxes for choosing to limit or not to only one category per post the better solution would be to have an input field for entering a number or a selectbox with options 1, 2, 3 etc. to select a number which would set a limit.
Hey Guys
We just updated the required category extension and added some new, cool features.
Thanks to those who helped by providing ideas on how to improve this extension.
Be sure to check it out and report back should you encouter any bugs!
Cheers Peter
Hi Peter,
Thanks very much for upgrade of this excellent extension!
I have noticed only a minor problem.
Say, for some weblog we have such preferences:
1) Posts in this weblog require at least one category? - Yes;
2) Maximum number of categories - 2;
3) Number of categories has to equal the maximum - Yes.
Then if we try to submit an entry after assigning it only to one category, we will get two error messages:
* Posts in this weblog must have at least one category associated with them.
* Posts in this weblog must have exactly 2 categories associated with them.
In this case only the second error message is needed.
Hi
Then if we try to submit an entry after assigning it only to one category, we will get two error messages:
Did you mean when using those settings and tryting to submit the entry WITHOUT ANY category assigned?
I just tested it and indeed and also by looking at the code, if you don’t chose any category and try to submit the entry, you will get those two errors.
If you select one category, you only should get the second error.
Of course you’re right and only one error is needed in the case I have a limit set and it’s not fulfilled. This will be fixed in the next release.
First of all, apologies, as I have already posted this bug report in the comments section of the developers blog, but wanted to post here as well just in case it got missed…
Hi, I am using this extension in several of my weblogs successfully. However, In one of my weblogs, I have 2 custom date fields, one for start date and one for end date. I have your extension installed and set to require at least one category to be selected before posting.
If I publish a new entry and choose a start and end date without selecting a category and try to publish, when the error message comes up, and I go back to my date fields, they have all reset to 1970 and a random time. If I don’t notice this, and add the required category and then update the entry then the wrong dates show.
I presume this to be a bug because when I turn off the required category for this weblog, the problem goes away. Obviously It only goes away because it no longer requires me to enter a category…
This has already caused problems for my client…. so for now, I have to keep the required category setting turned off, and hope that the client remembers to add the entry to the right category before publishing…
Any chance you could look into this bug as this extension is truly GREAT at what it does in general.
Many thanks
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.