Plugins are the foundation for adding new features to OctoberCMS by extending it.
Questions tagged [octobercms-plugins]
315 questions
0
votes
1 answer
In Octobercms item.viewBag.cssClass value with more than one classes use if statement with every class separately
In Octobercms Pages Plugin i can insert a CSS Class in menu item attributes. Then i can renter this value in the template using "item.viewBag.cssClass". So i can use:
{% if subitem.viewBag.cssClass == 'name' %}{% endif…

Charis
- 117
- 2
- 4
- 12
0
votes
1 answer
Use Faker in October CMS
I create Service Plugin in October CMS. I have 2 repeaters fields (packages, postman). I use Faker Plugin to Insert dummy data in the database but has an error
Invalid argument supplied for foreach()
This is my code for seed

ehsan
- 209
- 1
- 4
- 13
0
votes
1 answer
OctoberCMS Register users by group
I would like during registration the user can choose a group, and register users by to their group
for example at registration there are 2 groups, "freelancer" and "employer"
Thank you for your help

iDea Genius
- 11
0
votes
0 answers
October CMS: URL redirected to 404 page on first time
When I am calling to my october cms [Multi Lang] created website . When I call first time or when i change language it first time shows 404 page. and next time it runs well.
0
votes
1 answer
October CMS - override model method
I'm working on plugin that make extension for Ideas Shop. My problem is that I've had added some new fields to Product model in my extension plugin but this fields is not working with operations like update or creating some new product because the…

Martin Zbořil
- 3
- 1
- 3
0
votes
0 answers
October CMS - Permission admin user to edit only one record
If I have a list of houses in the administration.
I want to make it possible for every admin user to edit the house I allow, and only see it in the list.
Is that possible?
In what direction to go?
Thank you very much.

Nikola
- 207
- 1
- 4
- 17
0
votes
1 answer
get user from belongsToMany relationships
I have a service model in October CMS.
In this model, I need to get postman's users (postman is user group) but I am receiving this error:
Trying to get property of non-object
This is my code
public function getPostmanIdOptions()
{
$groups =…

ehsan
- 209
- 1
- 4
- 13
0
votes
0 answers
October CMS can't rollback version
Since October CMS support forum is read-only, asking my question there.
Can't rollback version from admin panel - the exception is
"file_put_contents(/var/www/www-root/data/www/foo/plugins/agm/bar/updates/version.yaml): failed to open stream:…

Occam's chainsaw
- 189
- 3
- 14
0
votes
1 answer
Call to a member function setComponentContext() on null - OctoberCMS
For the past couple of months I've been learning PHP and using Octobercms and I'm still fairly new to it. The basic concept of what I'm trying to achieve is a page which contains 5 tiles. When I click the tile it replaces the current page with a…

MPM-1000U
- 3
- 1
0
votes
1 answer
set data in repeater from component
I created a repeater field in October CMS and I want to set data from frontEnd.
I created a (form) component but I do not know how to set my form's data in the repeater.
has anyone experience like my problem?

ehsan
- 209
- 1
- 4
- 13
0
votes
1 answer
Modify all frontend content
I would like to modify all the frontend-content before it's rendered.
For example: Replace all strings like "foo" with "bar".
So now I got this:
public function boot()
{
/*
* Set the page context for translation caching with high…

SPQRInc
- 162
- 4
- 23
- 64
0
votes
1 answer
set user rainlab last login timestamp by JWTAuth
I have managed to create jwtauth to connect my mobile app to octobercms backend
from this reference
but the last_login field is always empty, I believe this is not set by default.
this is authenticated function that I have
use…

Isral Bustami
- 137
- 13
0
votes
1 answer
October CMS Repeater pagination or Load More
Hello fellow developers,
I am currently working on a project backed by octoberCMS. Everything seems great except the repeaters.
When the number of the repeater is too much (more than 50) the page hangs up and send an error message of max…

Prajwol Onta
- 1,448
- 5
- 21
- 48
0
votes
1 answer
October CMS and navigation on current page
I am trying to get the basically the active class applied to the current page. As it goes, the builder plugin is setting the URL through:
However I am…

m33bo
- 1,334
- 1
- 17
- 34
0
votes
1 answer
OctoberCMS - How to redirect user to home after email confirmation from user plugin?
I am using User Plugin in octobercms. Currently it is set to activation by email and user is directed to signup page with code. It actually signs in user after activation but it shows signup page. User have to go to login page and then to his id. Is…

Muhammad Shehroz Sajjad
- 135
- 13