Git Product home page Git Product logo

builder-plugin's People

Contributors

acasar avatar alekseybobkov avatar ariponce avatar bennothommo avatar blackxel avatar butterz21217 avatar daftspunk avatar danominium avatar datune avatar gergo85 avatar gpasztor87 avatar hammenws avatar host138 avatar iafilin avatar ideepblue avatar jackyhuynh0407 avatar luketowers avatar m49n avatar moisessepulveda avatar octoberapp avatar plehatron avatar pvullioud avatar samgeorges avatar sms-system avatar theservat avatar tleish avatar tobias-kuendig avatar vojtasvoboda avatar yuriiyurchyk avatar zhiweiwu0425 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

builder-plugin's Issues

Missing list controller lang row

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:

  • Click controllers on the left
  • Open a controller
  • Click 'List controller behavior' to open the inspector
  • Click anywhere on the screen to try to get out of the inspector

screen shot 2016-02-11 at 9 37 08 am

[Feature Request] Extend another Plugin

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 :)

Already created tables not visible

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

Backend submenus not displaying

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.

Something wrong with permissions

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

Setting language string / label on model gives JavaScript error

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

Bug: ApplicationException Datetime Error

Following Situation:

Table with a "date" column of type datetime.

Model with

  • fields.yaml: "date picker" in datetime mode referencing date column in table.
  • columns.yaml: column of type datetime referencing date column in table

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

Uncaught TypeError when adding a new string

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.

Ajax not work when create new string

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

Unknown database type enum requested

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

Can't add a third Timestamp

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? :)

"Plugin not selected"

it keeps alerting me with "plugin not selected" also if i created and repeatedly clicked over a new (created with the builder) plugin

get data from outside alive possible?

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...

Missing 'html' type in model lists

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.

Database original fields missing on save after updating

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

Problem about show "Backend menu"

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!

[Feature Request] Manage model relations

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!

  • Robin

Extending formwidget types

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'
            );
        });
    }

Database prefix ignored

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.

Front end record display won't sort correctly

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

[question] What about plugin.yaml?

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?

[Feature Request] Option to add timestamps to database tables

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!!

Menu item requiring permissions not registered - Server URL prepended to permission key

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.

Permissions issue -- typo and none registered

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?

[Feature Request] Ability to create several tables in one version

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.

Menu item settings modal not displaying

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)

Can't add image field

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:

schermata 2016-02-12 alle 10 42 31

I have set the copertinafield as string, is this the problem?

Failed to save image information

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

[Feature Request] When using the File Upload widget

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

Permissions not being registered

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?

Settings displayed to users without permission to access the builder

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:

screen shot 2016-02-13 at 12 01 31 pm

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.

Relations and model definition

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.

List configuration file not being detected

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:

  • Click controllers on the left
  • Open a controller
  • Click 'List controller behavior' to open the inspector - List configuration file won't be detected.

screen shot 2016-02-11 at 9 37 08 am

Any setting to add breadcrumb to controller views?

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?

When I create a plugin...

"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

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.