2

In List Definition, in elements.xml ListTemplate element has EnableModeration attribute.

From MSDN:

EnableModeration - Optional Boolean. TRUE to specify that content approval is enabled by default in lists created through the template; otherwise, FALSE.

Also in schema.xml, the List element has ModeratedList attribute

ModeratedList - Optional Boolean. TRUE to require content approval for submitted items.

What is the difference? Which one should I set to have Approve/Reject button available?

1

The scope differs, the effect should be the same. One is used in List instances (per instance of list - even when using the OOTB lists, you might want to have it created with Content Approval enabled) by example, the other is used in List Definitions, e.g. when you create a new List Template and want to enforce this by default, then you can omit it from List instances.

C:\Marius

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.