Giter VIP home page Giter VIP logo

Comments (4)

andrew-worsfold avatar andrew-worsfold commented on August 27, 2024

For significant add-ons, the best approach would be to create an extension (like the new Portfolio extension, or the upcoming WooCommerce extension). For smaller addons or features within Tailor, there are plans to utilise the Settings page in the administrator backend to allow users to activate and deactivate features.

What sort of things did you have in mind in terms of "add ons"? Do you envision the panel being in the frontend (i.e., builder interface) or in the backend (e.g., Tailor Settings page)?

from tailor.

Wemago avatar Wemago commented on August 27, 2024

Sorry for the late answer. Would be both for frontend and backend. The idea would be to activate/deactivate based on client, so we would split tailor into modules, like you did with portfolio.

from tailor.

andrew-worsfold avatar andrew-worsfold commented on August 27, 2024

What sorts of modules did you have in mind? Are you mostly thinking about a way to enable/disable elements?

A few thoughts from my side:

  1. It's possible for theme and plugin developers to use the built-in filters and hooks to change out-of-the-box functionality and admin options are available for the enabling/disabling of non-essential functionality like the JS and CSS editors. That said, additional admin options will be added for out-of-box elements.

  2. Plugins and themes that add, remove or modify functionality can be activated or deactivated at any time. Activating a plugin therefore would serve to 'activate' a Tailor module, depending on your definition of module.

  3. Tailor has been designed to provide only elements and features that are useful to the majority of end users. It's for this reason that portfolio and e-commerce features are provided in separate plugins, as not everyone will need or want them.

In the majority of cases, end users and theme developers could select (or recommend) only those extensions that are appropriate. If, for example, a theme developer didn't want a particular element to be available when using their theme, they could easily disable it using the 'tailor_register_elements' hook; the same is true for plugin developers (though I wouldn't necessarily recommend that a plugin disable core elements without making it clear that it is doing so).

Another option could be for theme or plugin developer to add a new panel to Tailor (or section to the existing Settings panel) in which these types of options could be displayed. Depending on what exactly you envision, there are quite a few ways of going about it..

from tailor.

andrew-worsfold avatar andrew-worsfold commented on August 27, 2024

As per the comment above, it's possible through the use of filters, actions and the built in API functions to add, change and remove most features in Tailor. Elements can also be set up to check for dependencies (see active_callback).

For significant additions, an extension plugin should be considered.

If someone would like to elaborate on what 'modules' within Tailor could look like and what value they would offer over and above the items mentioned, please raise an issue and I will be happy to consider it.

from tailor.

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.