How to not show license fields when displaying PloneFormGen forms?

I am using both PloneFormGen and collective.contentlicensing on my site.

Forms are showing up with the License info since Forms are derived from ATFolder and ATFolder implements ILicenseable.

How do I not display the License info when displaying forms?

See:

You could try filing an issue in the github repo and mention one of the committers but @macagua may know more

1 Like

Looking at https://github.com/collective/collective.contentlicensing/blob/master/collective/contentlicensing/events.py#L36 maybe there is a way for you to indicate whether or not something is licensable

1 Like

In the configure.zcml, the product has:

<class class="Products.ATContentTypes.content.folder.ATFolder">

</class>

Which is causing the problem.

If I could say:

<class class="Products.PloneFormGen.content.form.FormFolder">

I will be all set!

Then take a look at z3c.unconfigure :wink:

1 Like

Thank you for an imperfect solution.

Not exactly what I am looking for (since I want to retain the Licensable nature of ATFolder), but this is certainly better than commenting out the code in the product,

@sureshv I think the use of z3c.unconfigure directives is a way in the right direction