Here are the docs on creating page subclasses, https://mezzanine.jupo.org/docs/content-architecture.html#creating-custom-content-types. You would need to copy everything you want from Form and add anything extra you need.
On Sat, Mar 29, 2014 at 1:00 PM, Cajoline <[email protected]> wrote: > Ok thank you, > How can I do to create my own page form subclass without error? > because I prefer this solution that uses field injection > > Thank you > > Le samedi 29 mars 2014 20:37:31 UTC+1, Josh Cartmell a écrit : >> >> Yeah, your options are to use field injection or create you own page >> subclass =) >> >> >> On Sat, Mar 29, 2014 at 12:07 PM, Cajoline <[email protected]> wrote: >> >>> Ok thank you, so if I understand well >>> this is the only way to add a field to form page types? >>> >>> Thank you >>> >>> Le samedi 29 mars 2014 02:37:39 UTC+1, Josh Cartmell a écrit : >>>> >>>> Hey Cajoline, I would use field injection to add the new fields you >>>> want to the current form class, https://mezzanine.jupo.org/doc >>>> s/model-customization.html#field-injection >>>> >>>> >>>> On Fri, Mar 28, 2014 at 5:23 PM, Cajoline <[email protected]>wrote: >>>> >>>>> I'll rephrase what I'd like to do :) >>>>> I would like to create my own custom content form page, to add one or >>>>> two additional fields. >>>>> >>>>> I tried to inherit the Page model but I have form fields that appear >>>>> etc (this is normal) and if I try to inherit the model Form I get an error >>>>> because apparently I can not get there directly. >>>>> >>>>> My question is how can I do to have inherited Page content model with >>>>> the ability to create form fields and options that exist in the Forms >>>>> pages >>>>> >>>>> thank you, >>>>> >>>>> Regards >>>>> >>>>>> >>>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "Mezzanine Users" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to [email protected]. >>>>> >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Mezzanine Users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > You received this message because you are subscribed to the Google Groups > "Mezzanine Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
