Giter Site home page Giter Site logo

Rather than modifying fields on an existing content type, is it a better idea to simply override the entire module that provides the content type? about sitefarm_seed HOT 2 CLOSED

dearmond avatar dearmond commented on August 29, 2024
Rather than modifying fields on an existing content type, is it a better idea to simply override the entire module that provides the content type?

from sitefarm_seed.

Comments (2)

mrkmiller avatar mrkmiller commented on August 29, 2024

I feel like this one is really a judgement call of the subprofile. If I was only adding a field or 2 then I would just override the bits that need changing. This way I would still get all the config for things like path alias, sitemap settings, and upgrades. Also if the base module provides hooks or classes that are being used then these would not want to be duplicated.

However, if it turns into an issue where more fields are custom than original, or if current fields need to work differently like allowing unlimited entries instead of a single one, then it seems like a complete module override would be better.

In general, I would say NO, don't completely override a module.

from sitefarm_seed.

dearmond avatar dearmond commented on August 29, 2024

Agreed.

I think this question is a spin-off of several of the others. To word it another way: are config overrides in subprofiles so inflexible that subprofiles have to replace the entire module every time?

The answer appears to be "NO". Config overrides in subprofiles seems to be pretty flexible, so it's a judgement call of the subprofile.

from sitefarm_seed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.