Questions tagged [octobercms-plugins]

Plugins are the foundation for adding new features to OctoberCMS by extending it.

315 questions
1
vote
1 answer

Send E-mail in some period of time (monthly) [ octobercms ]

I'm developing an enrolment system in Octobercms. I need to check(DB) who has not paid for the enrolments they have enrolled at the end of the month. And then send an email to the customer informing them to pay. If onSendDueEmails() is the function,…
Dapk
  • 203
  • 2
  • 10
1
vote
1 answer

Octobercms Component - Limit results on relation

I have a plugin with 2 components. One is for 'posts', and the other is for a 'profile'. The profile belongs to a user and hasMany 'posts'. However when I access the relationship it loads every post. I just want to load 5 then paginate or lazy…
ServerSideSkittles
  • 2,713
  • 10
  • 34
  • 60
1
vote
1 answer

How to extend OctoberCMS plugin to send Slack notifications?

I want to extend Magic Forms plugin to send Slack notifications at the same time with mail notification but I don't know if it is possible. For my own plugin I'm using Slack for PHP library.
hnitek
  • 13
  • 3
1
vote
0 answers

How to make a relation field that shows a list of users with additionnal fields

The plugin I've created has two tables with these structures : CREATE TABLE notifications ( `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, `created_at` TIMESTAMP NULL DEFAULT NULL, `updated_at` TIMESTAMP NULL DEFAULT NULL, `sent_at`…
Mr.Miel
  • 159
  • 1
  • 3
  • 13
1
vote
1 answer

How to redirect from event handler in OctoberCMS plugin?

I have registered a listener for 'rainlab.user.logout' in the boot event of my plugin. public function boot() { Event::listen('rainlab.user.logout', function ($controller) { return Redirect::to('https://www.google.com'); }); } It…
1
vote
1 answer

OctoberCMS DynamicPDF open or download via AJAX

I am using DynamicPDF and I am opening my file in new tab to generate my file which is working absolutely fine. Here is what I have sone so far (in one of my plugin's update.htm file).
Mittul At TechnoBrave
  • 1,142
  • 3
  • 25
  • 70
1
vote
1 answer

How to do canonical url at blog plugin?

What I need to write in the url field for the Blog OctoberCMS plugin to generate canonical URLS of type site.tu/some-category/post-name
Titamik
  • 23
  • 2
1
vote
1 answer

Octobercms .env vs database Mail config settings

I can set Mail credentials in the backend Mail module, and with a .env file. Which one takes precedent? Will some plugins use .env and other plugins use the database settings? If I leave the backend values blank, will the .env settings be used?
Nikki
  • 336
  • 3
  • 13
1
vote
1 answer

Relation Limit [ octobercms ]

I have a model called Lessons and it has a belongsToMany relationship called students with a table called students_for_lesson. Lesson model has fields called number_of_students and number_of_enrollments for each lesson. what I want is to give a…
Dapk
  • 203
  • 2
  • 10
1
vote
1 answer

How do you update a backend form after adding a relation using the relationRender in OctoberCMS?

I have 2 models Booking and Attendee with a Many to Many relation I also have a BookingAttendee pivot model - so I can make use of the afterCreate methods that these have. In the backend form for a Booking where I want to add attendees - I'm using a…
1
vote
1 answer

Magic Forms | Custom messages not working

I get these standard error messages instead of my custom ones The comments field is required. The name field is required. The email must be a valid email address. Even though in the component I have these settings: [genericForm contactForm] group…
Empi
  • 94
  • 1
  • 9
1
vote
0 answers

How to access or store form values for use in another function

Issue Summary What I'm trying to do is submit a form using the "Magic Form" Plugin on OctoberCMS and take the values submitted from that form and use them in another function. My attempt I'm currently doing this in the 'Code' section of OctoberCMS.…
Finn
  • 57
  • 3
1
vote
2 answers

Validation and Email not working on OctoberCMS

My issue: I'm running OctoberCMS on Azure and I'm trying to use the 'Magic Forms' plugin for October. I'm using the generic form and have it submitting successfully and is being shown on the backend. My issue is that I want to send an email…
FinnO'N
  • 39
  • 3
1
vote
1 answer

how to change the direction of a form dynamicly with ajax or javascript in octobercms

I have a form, and I would like it when I submit it, that it redirects me in another page, knowing that the redirection path must be dynamic, it means that I use a javascript function that takes the user's choice and return a string the ajax…
Fati Alami
  • 51
  • 11
1
vote
1 answer

Integrate ChatBot in OctoberCMS

I am new in OctoberCMS, and I want ask if there is a possibility to integrate ChatBot in OctoberCMS...I found several plugins like live chat