rainlab / builder-plugin Goto Github PK
View Code? Open in Web Editor NEWVisual development tool for October CMS
License: Other
Visual development tool for October CMS
License: Other
Created plugin using thing > on the left but cannot select it to work with it and add models.
I just figured, that the columns editor is not scrollable. That is a problem when dealing with a bigger amount of columns: https://www.dropbox.com/s/bbst5wros52kz4h/Screenshot%202016-02-11%2017.45.39.png?dl=0
As you can see, it cuts the columns at the bottom and there is no chance to scroll down.
When inspecting a List controller, clicking out of it results in the error message
rainlab.builder::lang.property_behavior_form_name.property_behavior_list_file_required
Replicated on the latest build of october as of time of writing (Build 316).
Steps to replicate:
Does options in list controller "Show sorting, Show tree, Tree expanded" creates sorting lists?
https://octobercms.com/docs/backend/reorder
If yes there is a bug on that, looks like that it doesn’t work. If no can you add that on future features.
Thanks
It would be very nice, if I simply could create a Plugin and extend an existing one.
Example:
I want to extend the User Plugin with my own fields, functions etc. Like in the Video on Vimeo Extending the User Plugin there are two ways of doing this. Both would be nice if they were included in the builder.
If I'm wrong, please correct me :)
Hello
I am new to OctoberCMS. I created a new plugin added migrations and added those in versions.yaml. After that i did a refresh, tables were created perfectly but on the backend in builder the tables are not showing. How can i make them show?
Thanks
I have defined a backend menu with 3 submenus for a plugin, carefully following the 'Say hello to Builder' video tutorial. However, when selecting the plugin menu (top menu bar), no submenus are displayed (left menu bar is not displayed at all). In addition the plugin menu item (top menu bar) does not highlight as selected.
I made all actions in builder plugin.
Created permission.
When I add permission for backend menu item, this item not displayed for backend user (not super user) which has this permission. Including for main menu & side menu.
core build 316
builder 1.0.8
A small issue, but worth mentioning right?
The 'trigger' option is missing for the repeater type. It would be nice if this could be added.
When I try to set a language string via Builder -> Models -> Forms -> Label: Title [+] sign
I get an error when I have filled in the String key and String value and hit the ok button:
TypeError: this.options is null
http://hostname/plugins/rainlab/builder/assets/js/build-min.js?v1.0.5
Line 2
Is there away to test with an unminified build-min.js version ?
I am using:
FireFox 44.0.2 (Google Chrome also gives the same TypeError)
Builder 1.0.5
October Build 316
Following Situation:
Table with a "date" column of type datetime.
Model with
One entry created in the backend with the date picker.
Verified, that an entry is generated in the table and that the column is of type datetime.
When attempting to visit the backend list view again, after inserting the first entry, I receive an ApplicationException.
Here is the stack trace
Exception.pdf
At the moment there is only the "Create" button that appears, but could also do with the delete button to delete multiple items from the list, or at least the option to add it.
Cheers
I'm trying to use the localization feature by using the new string feature when I create form element tabels. The site just keeps loading after I have entered my string. If I open up the javascript console I get this error:
Uncaught TypeError: Cannot read property 'plugin' of nulli.onSubmitPopupForm @ build-min.js?v1.0.8:2n.event.dispatch @ jquery.min.js?v317:3r.handle @ jquery.min.js?v317:3
I'm using swedish as my default and only language.
Hello All,
Is it only me who has problem with new (localization) string creation?
When I try to create the new string the AJAX just keeps loading endless...
Could you please help me?
If you would have any question do not hesitate to ask me...
Thank you
After I click Models and create fields.yaml i not see form builder for generate fields form.
screenshot :
http://prntscr.com/a1o41y
It happens when I'm trying to save new table.
"Unknown database type enum requested, Doctrine\DBAL\Platforms\MySqlPlatform may not support it." on line 423 of vendor\doctrine\dbal\lib\Doctrine\DBAL\Platforms\AbstractPlatform.php
Windows 7,10
PHP 5.6
MySQL 5.6
Thanks for a fantastic plugin.
I usually define Created_at, Updated_at and Published_at as timestamps for my user to be able to publish the content later. Therefore I need to be able to create three timestamp columns, it always makes the published_at a DateTime. And if I open old plugins i made the plugin do not show that the column is a timestamp. Instead the Builder plugin interface sais that the column is a Date-column.
Why can't I have more than two Timestamp-columns? :)
Extreme long names can cause 1059 mySql error. What do you think about adding length validation? What do you think about triggering rollbacks if mySQL errors occur?
it keeps alerting me with "plugin not selected" also if i created and repeatedly clicked over a new (created with the builder) plugin
I'm going to use javascript library to show data on front-end page.
and I want to get data from outside(google speadsheets or other services API).
inerval timing and cycic get & stored data from outside source...
hello how can i add a pagination to record list generate by builder plugin ?
When I want to show the richeditor content in a list column it shows the raw html when the text type is selected.
This can be avoided by making a 'html' option, which renders the html content in the list column.
Top work on the builder plugin peeps!
Would it be possible to add the import / export traits via the Builder plugin?
I created a table in bulider with these steps:
1 - named table "kurtjensen_profile_changes"
2 - added "user_id" (integer) and "change" (text) fields.
3 - saved - migration file looked correct except I wanted timestamps
4 - opened an existing table in builder to see what it had for timestamp fields
5 - opened my "kurtjensen_profile_changes" table again
6 - added "id", "created_at" and "updated_at" fields
7 - saved - migration file only showed id and timestamps ( not original 2 fields )
See: https://drive.google.com/file/d/0BwJLIChm8ILtSHI0VC1WbnpyV1E/view?usp=sharing
Create new Plugin by Builder, Have problem about show "Backend menu" when allow permission. It is't show. How to you fix it?
Thank you RainLab. Builder is useful!
Hello,
Could it be possible to manage the relations (hasOne/hasMany/belongsTo/BelongsToMany) per model, so then we can use the relation option in a model list column.
Would be great!
I'm attempting to add my own form widgets, unfortunately I can't figure out how to extend
RainLab\Builder\Widgets\DefaultControlDesignTimeProvider
...to include my own type without actually amending the $defaultControlsTypes
array and creating the required partial within the rainlab\builder\widgets\defaultcontroldesigntimeprovider\partials
folder.
I've added the following to my Plugin.php - Could you please advise me further?
public function registerFormWidgets()
{
return [
'ThePottingShed\ExtraFormWidgets\FormWidgets\CharacterCountTextarea' => [
'label' => 'Character Count Textarea',
'code' => 'charactercounttextarea'
],
];
}
public function boot()
{
Event::listen('pages.builder.registerControls', function($controlLibrary) {
$properties = [
'characterLimit' => [
'title' => Lang::get('thepottingshed.extraformwidgets::lang.form.property_character_limit'),
'description' => Lang::get('thepottingshed.extraformwidgets::lang.form.property_character_limit'),
'type' => 'string',
'validation' => [
'required' => [
'message' => Lang::get('thepottingshed.extraformwidgets::lang.form.property_character_limit_required')
],
'regex' => [
'message' => Lang::get('thepottingshed.extraformwidgets::lang.form.property_character_limit_regex'),
'pattern' => '^\d+$'
]
]
],
'size' => [
'title' => Lang::get('rainlab.builder::lang.form.property_attributes_size'),
'type' => 'dropdown',
'options' => [
'tiny' => Lang::get('rainlab.builder::lang.form.property_attributes_size_tiny'),
'small' => Lang::get('rainlab.builder::lang.form.property_attributes_size_small'),
'large' => Lang::get('rainlab.builder::lang.form.property_attributes_size_large'),
'huge' => Lang::get('rainlab.builder::lang.form.property_attributes_size_huge'),
'giant' => Lang::get('rainlab.builder::lang.form.property_attributes_size_giant')
],
'sortOrder' => 51
]
];
$controlLibrary->registerControl('charactercounttextarea',
'thepottingshed.extraformwidgets::lang.form.control_character_count_textarea',
'thepottingshed.extraformwidgets::lang.form.control_character_count_textarea_description',
ControlLibrary::GROUP_STANDARD,
'icon-pencil-square',
$controlLibrary->getStandardProperties(['stretch'], $properties),
'RainLab\Builder\Widgets\DefaultControlDesignTimeProvider'
);
});
}
Hi,
I'm trying to create a table, I set all my columns and save the new table. Builder creates the migration correctly but when I want to create a model, Builder doesn't find any table to associate.
When I return in the Database tab, I see "No tables found" but the table exists in my DB with correct prefix.
If I try to save again my current table tab with a new column, I have this error.
"The table with name creactive_shop_test doesn't exist" on line 84 of /var/www/simone/plugins/rainlab/builder/classes/DatabaseTableModel.php
Builder seems to test the table without prefix name.
I have a model with a column "order" as an "int" data type. I have been trying to set the records to be displayed by that column and it does not work. I have changed the data type to a string to see if that changed anything by having them sorted alphabetically but that did not work either. I also added this into my controller:
public function listExtendQuery($query,$definition = null) { $query->orderBy("order","sac"); }
Nothing I do seems to change the order of the records on the front end.
Any help or anyone else run into this issue?
Thanks!
Austin
Great plugin, it really saves time!!
I have a question I cannot find an answer for; hopefully someone can help me out here. Building a plugin with Builder also makes a file in the plugin root called: "plugin.yaml" . Does this plugin work on other systems without the Builder plugin as well? In other words; is this YAML file fully compatible with Octobercms?..or must the content be refactored into the plugin.php once ready for deployment?
Checkbox option perhaps to add the "created_at" and "updated_at" timestamp fields to any database tables.
Can add them manually with a default of "0000-00-00 00:00:00" but a little checkbox that added in $table->timestamps();
to the up()
function would be a nice touch.
Fantastic job by the way guys with this plugin!!
I generated a plugin with a single menu item that requires permission to be accessed.
The required permissions has been granted to users groups but the menu is not being registered.
There seems to be an issue on modules/system/classes/PluginBase.php
that prepends the server URL not only to the controller URL but also to the permissions
array elements.
public function registerNavigation()
{
...
if (is_array($navigation)) {
array_walk_recursive($navigation, function(&$item, $key){
if ($key == 'url') {
// $item = Backend::url($item); //: bug: prepends URL to permissions' items
return Backend::url($item); // works: only prepends URL to 'url' key
}
});
}
return $navigation;
}
}
Other possible solution would be to not pass the item
parameter of the closure by reference and keep the inner code as it is:
public function registerNavigation()
{
...
if (is_array($navigation)) {
// array_walk_recursive($navigation, function(&$item, $key){ // by reference, bug
array_walk_recursive($navigation, function($item, $key){ // by value, works
if ($key == 'url') {
$item = Backend::url($item);
}
});
}
return $navigation;
}
}
I am not sure if this is the right place to fix this issue thus I'd better not sending a pull request myself.
Hope this helps on reproducing and fixing this issue.
Two issues I found so far. Firstly there appears to be a typo in plugins/rainlab/builder/controllers/Index.php
on line 37. The following line of code:
public $requiredPermissions = ['rainlab.buileder.*'];
Appears to have a typo. However, I'm not sure if that counts as a bug since I don't see any backend permissions. The registerPermissions
function in Plugin.php is empty. Is this intentional or a bug?
As the title suggests, it would be nice if it’s possible to have several tables created in one version change itself. Also, I find it odd that there are no provisions to apply foreign keys and also unique constraint on columns. Those would be nice features to have.
When attempting to add a new menu item from 'Backend Menu', clicking on the newly created menu item does not display the menu settings modal window. The screen dims slightly but no settings window.
October Build 314; Builder v1.0.1; Mac Safari Version 9.0 (10601.1.56.2)
When adding a field in fields.yaml in Model section got this error while trying to add new localization string:
Uncaught TypeError: Cannot read property 'plugin' of null
i.onSubmitPopupForm @ build-min.js?v1.0.4:2
n.event.dispatch @ jquery.min.js?v316:3
r.handle @ jquery.min.js?v316:3
https://nimbus.everhelper.me/client/notes/share/399199/wzrb9hxvwtbd6e7ip6cx
I have tried to add an image upload file but when I try to visit the form I get:
We're sorry, but an unhandled error occurred. Please see the details below.
Model 'ZeroUnoSrl\Usato\Models\Usato' does not contain a definition for 'copertina'.
/home/vagrant/www/OctoberCMS/modules/backend/FormWidgets/FileUpload.php line 271
TYPE
I have added the copertina
filed:
I have set the copertina
field as string
, is this the problem?
I have tried to upload image using file upload field, upload file to server is success but failed to save image information (file name) to database. thank's
Hi guys,
When adding a File Upload widget to a model could we have an option (maybe a dropdown) to make it "attachOne" or "attachMany" which would also add the relevant code to the model file like:
public $attachOne = [
'field_name' => ['System\Models\File']
];
and (maybe with a sort order option too?)
public $attachMany = [
'field_name' => ['System\Models\File', 'order' => 'sort_order']
];
Cheers
Hi, I've just created my first plugin with Builder. Thanks for this amazing plugin!
My plugin permissions are not being registered on user permissions settings page.
If I comment the generated Plugin.php
registerPermissions()
method everything works fine and the permissions are registered:
<?php namespace My\Plugin;
use System\Classes\PluginBase;
class Plugin extends PluginBase
{
public function registerComponents()
{
}
// by uncommenting this method permissions are not registered
// public function registerPermissions()
// {
// }
public function registerSettings()
{
}
}
Am I doing something wrong?
i try to use builder at first time but when i create plugins show that error not found listNewVersions();
i hope it can solve quickly.
thanks
Regular backend users (users that are not administrators and who do not have the permission
Builder -> Create and edit plugins
checked) are seeing the Set your plugins namespace and author name
setting. See below:
Is there any permission that controls the visibility of this setting?
It's not a major issue as this plugin would probably not be installed in production but I am curious if this is useful for a regular user in any ways.
in my octobercms menu permissions and backend menu blank.
picture:
http://prntscr.com/a1o9hg
http://prntscr.com/a1o9dg
I dont see model relations and other model attributes supported? Have I missed something?
Is the idea that we create the model yaml files in builder and then edit the model manually for relations, validation rules, etc
Thanks for the good work again guys, it looks really nice.
I have a working (existing) plugin with a list controller, however inspecting it in the Controllers section of Builder results in a validation error as the List configuration file row isn't detected by default.
Replicated on the latest build of october as of time of writing (Build 316).
Steps to replicate:
If you change the length of a string field - e.g. from 255 to 100 - the maxlength attribute of the correspondent input field (on the update page of the form behaviour) will not update. It will stay at 255.
When a controller is generated by the builder the breadcrumb generator block is not included on the generated view files create | preview | update
.
The code block I am mentioning is:
<?php Block::put('breadcrumb') ?>
<ul>
<li><a href="<?= Backend::url('my/plugin/dummies') ?>">Dummies</a></li>
<li><?= e($this->pageTitle) ?></li>
</ul>
<?php Block::endPut() ?>
This block is included in the views when a controller is generated by command line:
php artisan make:controller my.plugin Dummies
Are there any settings to include the breadcrumb block on the generated views?
"Call to undefined method System\Classes\VersionManager::listNewVersions()" on line 106 of /usr/share/nginx/html/phpdev/plugins/rainlab/builder/widgets/VersionList.php
This error
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.