Plugins are the foundation for adding new features to OctoberCMS by extending it.
Questions tagged [octobercms-plugins]
315 questions
2
votes
1 answer
How to perform a unit test for a backend controller
I wish to test if my backend controllers perform properly via unit tests so I don't have to manually check them when changing things around.
Unfortunately on everything I try I get a 404 not found.
My phpunit.xml

Tschallacka
- 27,901
- 14
- 88
- 133
2
votes
1 answer
OctoberCMS: set multiple models in one API endpoint
I build backend with OctobderCMS for mobile app and need to have API for the app, i have around 15 models and want to have 2 API endpoint for these models,
One endpoint for 2-3 models and the other enpoint for the rest of the models.
Can i make…

Isral Bustami
- 137
- 13
2
votes
2 answers
How to filter blog posts with multiple categories in octobercms?
In October CMS how to filter blog posts with multiple categories? I'm using RainLab Blog plugin. The plugin only allows filtering with one category. I want a combined result. Please help.

Midhun Babu
- 119
- 1
- 10
2
votes
1 answer
OctoberCMS with JWTAuth API authentication plugin- I am getting {"error":"token_not_provided"}
I am authenticating users with JWTAuth OctoberCMS API plugin. When I register user or login with postman, the request return a token. However when I try to access authenticated routes like:
Route::get('api/v1/todos',
…

wafutech
- 481
- 10
- 30
2
votes
3 answers
User table inheritance in OctoberCMS
I have two users: teachers and students, each of them has different attributes. For example: student has one class, teacher has many classes, etc.
I would like to inherit OctoberCMS Users plugin, and add two controllers with these additional…

Behiry
- 575
- 5
- 20
2
votes
0 answers
October cms blog plugin: How to update component when the button is clicked
description = "Display Blog list"
[viewBag]
snippetCode = "post-list.htm"
snippetName = "Display Blog list"
snippetProperties[heading][title] = "Heading"
snippetProperties[heading][type] = "string"
snippetProperties[heading][default] =…

Ron Ogrimen
- 21
- 3
2
votes
2 answers
Octobercms: how to translate flash messages?
I use translate.rainlab plugin for localization, but not sure how to translate flash messages for ajax form.
function onMailSend() {
Mail::sendTo('name@example.com', 'contact.form', post());
Flash::success('Message has been sent');
}

qwaz
- 1,285
- 4
- 23
- 47
2
votes
1 answer
Class not found, plugin working good
I made new plugin with informations find at this post: https://luketowers.ca/blog/how-to-use-laravel-packages-in-october-cms-plugins/
I update composer.php and in vendor folder i got created files I see plugin phpclasses/evalmath in backend.
When on…

Casa
- 19
- 2
2
votes
2 answers
How to display username instead of id in a list in octobercms
In my case I have a backend list and I got the updated UserId on the list. But I have no Idea how to display the Username instead of the UserId. Is there anyone can help me to get out of this?
See the list here

H2O3
- 23
- 2
2
votes
2 answers
OctoberCMS backend redirect after login
I can't find solution to redirect user after login in backend.
I try to add
Event::listen('*', function() {
print_r(Event::firing());
});
to the boot() method of my Plugin, and I see many events in backend, but not for auth or login.
I even…

nik.parotikov
- 47
- 3
2
votes
0 answers
How to set multiple select dropdown type for defineProperties() in October CMS plugin component
I'm trying to create a gallery plugin with a component option to select which gallery or galleries to display. How do I make the dropdown to be multiple selected options, not just one.
Ex:
Gallery…

Ronnie
- 39
- 6
2
votes
0 answers
Compiling less in octoberCMS plugin
I am creating a plugin in OctoberCMS and i need to use less for some front-end & back-end use cases. The problem is that i have no idea how to import less files files in my plugin.
As i understand it, normally something like this would be…

Jasper de Vries
- 73
- 6
2
votes
1 answer
OctoberCMS Builder Plugin backend dropdown
I would like to create a plugin where to create Posts, each post belong to 1 Category.
And there is a dropdown menu at the backend where you can choose which category the post belongs to when you are creating a post.
However, I want the the options…

warmjaijai
- 991
- 4
- 13
- 30
2
votes
1 answer
OctoberCMS | Paste relation attibute into a hidden input
Imagine that I have a relation field, and I want to store that relation and also an atribute name of the chosen relation into a hidden input.
Example: Into a relaion field I choose a project with name "Something Cool", I want to store "Something…

Ivan
- 514
- 5
- 21
2
votes
3 answers
OctoberCMS: How can I add javascript to page from component only once
I'm looking for a way to add a section of JavaScript code to a page that is required for my plugin. I know you can include a file via $this->addJs() but I need the JavaScript to be dynamically constructed from settings in the plugin's settings…

Nyorai
- 73
- 7