We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Required Category Extension

Development and Programming

Laisvunas's avatar
Laisvunas
879 posts
17 years ago
Laisvunas's avatar Laisvunas

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!

       
Laisvunas's avatar
Laisvunas
879 posts
17 years ago
Laisvunas's avatar Laisvunas

After disabling Required Category Extension it is possible again to update entries.

It seems that this interference with updating of entries is serious bug.

       
gridonic's avatar
gridonic
231 posts
17 years ago
gridonic's avatar gridonic

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.

       
Laisvunas's avatar
Laisvunas
879 posts
17 years ago
Laisvunas's avatar Laisvunas

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.

       
gridonic's avatar
gridonic
231 posts
17 years ago
gridonic's avatar gridonic

Glad it’s working, just yesterday, I added SAEF support (in the 1.0.1 version not supported). I will be testing this through the weekend and make it public when everything goes well.

       
gridonic's avatar
gridonic
231 posts
17 years ago
gridonic's avatar gridonic

Updated the extension to make it work with SAEFs.

Hope all works, tested by different parties a few times.

Enjoy!

       
gridonic's avatar
gridonic
231 posts
17 years ago
gridonic's avatar gridonic

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.

       
Laisvunas's avatar
Laisvunas
879 posts
17 years ago
Laisvunas's avatar Laisvunas

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.

       
Golfball's avatar
Golfball
10 posts
17 years ago
Golfball's avatar Golfball
Hi Peter, …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.

That would be terrific! 😊

       
gridonic's avatar
gridonic
231 posts
about 17 years ago
gridonic's avatar gridonic

Hey Guys

We just updated the required category extension and added some new, cool features.

  • Added category maximum feature
  • Added exact category number feature

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

       
Golfball's avatar
Golfball
10 posts
about 17 years ago
Golfball's avatar Golfball

Super!

How about this for a suggestion: Limiting # of categories dependent on member group. :D

I know, I know. :D I’m thrilled with this as it is, don’t go crazy!

       
Laisvunas's avatar
Laisvunas
879 posts
about 17 years ago
Laisvunas's avatar Laisvunas

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.

       
gridonic's avatar
gridonic
231 posts
about 17 years ago
gridonic's avatar gridonic

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.

       
angstmann's avatar
angstmann
225 posts
16 years ago
angstmann's avatar angstmann

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

       
gridonic's avatar
gridonic
231 posts
16 years ago
gridonic's avatar gridonic

Hi Richard

We’ll look into it as soon as possible, we’re currently pretty busy with some client work but we’ve received your report.

Regards Peter.

       
1 2 3

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.