Comments (4)
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.
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.
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:
-
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.
-
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.
-
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.
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)
- Move inline css to a file? HOT 1
- Percent sign (%) character in URL breaks button element
- Box Title Does not center correctly
- [Concept] Tree Shaking Frontend CSS & Stylesheets a lot
- Clone and modify the Section Element
- "Minimum screen size" option not available for "Posts" element
- Dynamic content element: Inner HTML revert back to placeholder HOT 2
- Responsive Issues for Carousel Element HOT 1
- WPML Support HOT 1
- Extend responsive breakpoint
- Gracefully handle WP Engine's Heartbeat API blocking HOT 1
- Columns not rendering properly in theme / on site HOT 1
- Unable to close editing box on Wordpress 4.9 HOT 14
- Interested in taking on this project
- Elements model window css problem
- editor doesn't start on sandstorm.io wordpress
- Post title reverts to `_post_title` HOT 3
- Extending: New $atts not found in php using Sample Extension HOT 1
- How to make text mode HOT 1
- Tailor
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tailor.