Comments (8)
+1 for relation definition throught the UI. The builder plugin is so powerful. I would like to see some options to create an easy to use relation dropdown field between several content types.
from builder-plugin.
In fact, I don't think that there are relation, for now.
from builder-plugin.
Relations are not supported at the moment - they are not displayed in the autocomplete fields and cannot be generated with the Builder. Please read about limitations in the plugin documentation: http://octobercms.com/plugin/rainlab-builder
Is the idea that we create the model yaml files in builder and then edit the model manually for relations, validation rules, etc
@axomat - that's correct, Builder can only edit YAML files. From the documentation:
Builder is a productivity tool, it doesn't completely replace coding by hand and doesn't include a code editor for editing PHP files (the only exception is the version management interface). Builder never overwrites or deletes plugin PHP files, so you can rest assured knowing that the code you write never gets touched by Builder. However, Builder can create new PHP files, like models and controllers.
Support for relations in the Inspector autocomplete fields is planned.
Thanks!
from builder-plugin.
@alekseybobkov I have a question, how does the "Relation" field works? and
Builder can only edit YAML files
It can't edit PHP? Like migrations, or only it can create them.
from builder-plugin.
how does the "Relation" field works
Relations can be defined manually in the model class: http://octobercms.com/docs/database/relations#relationship-types. Currently Builder can't detect model relations and display them when you enter a field name in the Inspector (for example, when you're creating a new form control), but we're planning to implement this feature.
It can't edit PHP? Like migrations, or only it can create them.
That's correct. Builder can't edit PHP files (except Migrations). It can only create new PHP files (controllers, models, etc). There are several reasons why we choose this approach. One of them is that our primary focus is the CMS platform. Developing a complex visual development tool that can safely refactor existing PHP code would move our focus away from the main goal.
from builder-plugin.
Thanks for this answer. Really appreciated!
from builder-plugin.
Hello @FlusherDock1 ,
If you want help you should write in english. OctoberCMS members are really busy and most of the times, you can only get support from community members, in english.
Also, your posts are not related to this issue. For what you ask, please go to the October CMS forum, you will get help there.
Thanks
from builder-plugin.
Hello, is there some way to make a relation between a field (made with the model builder) and other table (and model) that has a many to many relation with?
I've been reading all the comments but is not working to me to solve my problem.
My point is that i want to construct a form into the builder but some of the fields has relations with other tables and models. This causes an error when i try to use it because it says that the fields are no related with any column in the main table.
Thanks in advance!
from builder-plugin.
Related Issues (20)
- plugin won't update from 1.0.26 to 1.0.28 HOT 2
- Error when saving plugin with File field HOT 3
- move plugin HOT 1
- Adding form fields to model does not load the .env DB connection variables HOT 1
- Version rollback not working in PHP 8 HOT 1
- Feature request: Migrations for update columns HOT 1
- Display A Single Column Record In the Page Title HOT 1
- BackendMenu issue with duplication of permission HOT 1
- Custom value in Relation HOT 1
- How to add comment for field via UI of Database? HOT 3
- Database - Version 1.2.1 HOT 2
- BadMethodCallException: Method October\Rain\Validation\Validator::validateReserved does not exist HOT 1
- Error when creating a new plugin in the newest update [version: 3.1.22] HOT 2
- Builder Plugins Not Showing Up In Plugin Selector List HOT 2
- Repeater maxItems HOT 2
- Call to undefined method RainLab\Builder\Models\ControllerModel::processImportExportConfig() HOT 1
- Unable to find configuration file - Error in October CMS 3.4.6 install HOT 5
- Builder Plugin Reorder is missing HOT 3
- Importing a Tailor Model with `multisite: sync` throws Exception HOT 1
- New plugins not showing in plugins list HOT 5
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 builder-plugin.