Plugins are the foundation for adding new features to OctoberCMS by extending it.
Questions tagged [octobercms-plugins]
315 questions
2
votes
2 answers
Backend\Controllers\Users must define property $relationConfig
I like to build a Plugin where Frontend User belongsTo BackendUser ( One to Many Relation ). For the backend User i want to display an partial with Relation Manager to add many Frontend Users to BackendUser. If i try dynamically define a property…

JBee
- 23
- 2
2
votes
2 answers
OctoberCMS: How to maintain a two-way friendship relation?
I'm extending the rainlab.user plugin to allow each user to have friends via a simple intermediate table with the following fields:
user_id
friend_id
status
I've extended the User model:
use RainLab\User\Models\User as…

B Faley
- 17,120
- 43
- 133
- 223
2
votes
1 answer
OctoberCMS: How to extend a controller by adding or editing RelationController?
How can we extend a plugin by adding Backend.Behaviors.RelationController to one of its controllers? I need to extend the User Plugin and add a belongsToMany relationship to its User model. I also want to extend its Users controller to implement the…

B Faley
- 17,120
- 43
- 133
- 223
1
vote
1 answer
October CMS datetime picker has a max date of 2020
I am trying to add an event using proevent in October CMS and the date-picker has a default range from 2010 to 2020 and I cannot change this option. When I inspect the HTML I see the below code:

codeninja
- 315
- 2
- 10
1
vote
0 answers
ErrorException: Object of class Illuminate\Routing\UrlGenerator could not be converted to string - October CMS
I'm working on a website that I did not build. This website is built on October CMS platform. I'm currently trying to add a new page to this website but, whenever I try to view the page, I get a 500 server error on the front-end, and when I look at…

Regina
- 11
- 1
1
vote
1 answer
Access protected property when extending controller in OctoberCMS
I am struggling with extending a Plugin in OctoberCMS.
I need to access a protected property, so I wanted to create a new getter, that would return the value, but it always returns NULL
Here an example code of the controller (I cannot extend it…

Asped
- 3,083
- 4
- 31
- 52
1
vote
1 answer
I want to make an input in the admin panel with which you can increase / decrease prices in several tables in db by %
I want to make an input in the admin panel with which you can increase / decrease prices in several tables in db by %.
At the moment, I did it through a filter
{
return [
new TwigSimpleFilter('price_kiev', [$this,…

Alexander
- 71
- 7
1
vote
2 answers
Command "october:migrate" is not defined
I must add table to existing octobercms project and added migration but it is not migrating. what may be problem? when I type php artisan october:migrate I faced with this problem
Command "october:migrate" is not defined.
Did you mean one of…

A'zamjon O'ktamov
- 27
- 6
1
vote
3 answers
OctoberCMS belongsTo relationship saving problem
I have two models:
Brands
Mods
I can display all brands via belongsTo function. Problem is when I try to save same brand two times, I get error duplicated entry.
This belongsTo is causing duplicated entry error when saving to DB two same…

Slasher
- 568
- 7
- 29
1
vote
1 answer
How do I integrate a third-party library into october cms?
I need to add the payment system library to my project on Ocrober CMS ( https://github.com/yandex-money/yandex-checkout-sdk-php ). In this regard, the question is:
Can I do this using only the classes of my plugin, or is there a way to automatically…

Titamik
- 39
- 6
1
vote
1 answer
On Octobercms frontend sort blog menu items at Descending
Octobercms blog plugin has a function that Register menu items for the RainLab.Pages plugin:
public function boot()
{
/*
* Register menu items for the RainLab.Pages plugin
*/
Event::listen('pages.menuitem.listTypes', function()…

Charis
- 117
- 2
- 4
- 12
1
vote
1 answer
Changing the author name In already built plugin in octobercms
I am building plugins that do simple CRUD in octobercms but the url in the backend has author name in it. I want to change it to something reliable to the website like max/home/home to page/home/home

werewolf
- 21
- 5
1
vote
0 answers
How to override a Model properties and methods in OctoberCMS?
I want to extends the Blog plugin by changing the property $allowedSortingOptions and also the scopeListFrontEnd() scope.
The property defines the sorting options available and I want to add some other options.
Original value from Blog Post.php :
…

Zied Hf
- 491
- 3
- 10
- 30
1
vote
1 answer
How to add a new Column to an exesting Table in OctoberCms DB
I'm trying to create a new Plugin to update an existing table rainlab_blog_categories by adding a new order column.
I managed to update the view with a new field, however I'm not able to update the DB successfully.
I used the CLI php artisan…

Zied Hf
- 491
- 3
- 10
- 30
1
vote
2 answers
October CMS - Range field type or custom in Create / Update form
I need to set an input range on a form to create and update. In the October CMS documentation, I found a list solution, but in the register there is no "range" field.
I'm using the "Builder…

Tyandrer Boldt
- 71
- 6