Questions tagged [octobercms-plugins]

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

315 questions
0
votes
1 answer

How to Save form input to database using OCtober CMS Plugin Component

Am trying to save user information into the database using October CMS Plugin component. This is how the registration Page looks like registration (register.php)

Add User

{% component 'userregistrationform' %} Here what the Plugin Looks…
0
votes
0 answers

how can i adjust the code to show the double type well

I'm working to show double data well in my routes. From backend I insert the correct numbers but in the route it shows me my number but with other numbers. As in my two attached images. enter image description here enter image description here I'm…
Alessandro
  • 101
  • 2
0
votes
1 answer

OctoberCMS: How to access database tables after they are created?

I need to access one of my database tables in the boot method of my plugin. The problem is that the first time that the plugin is installed, in the boot method, the tables have not been created yet, because the migration files are yet to be…
B Faley
  • 17,120
  • 43
  • 133
  • 223
0
votes
1 answer

How can i upload an image from a form of a plugin in october cms?

I'm tryin to add fileUpload to my multisite plugin ,while adding a new domain i want to upload the country flag of that website. I trie some things but this error showed up while trying to adisplay the crating new domain…
Islam
  • 9
  • 7
0
votes
1 answer

How to return the key value from a checkbox list field which automatically updates another field

I would like it so that when one or more of the options in my checkboxlist has been ticked, the value of said option will then update the amount field. I'm sort of cheating as I'm using the key value to be the price of the field which I would then…
0
votes
1 answer

How to roll back With OctoberCms?

With OctoberCms, The CURRENT BUILD is 447, But I want to rollback 433, what should I do?
lnmput
  • 51
  • 1
  • 1
  • 3
0
votes
1 answer

How using ServiceWorker with Themes in OctoberCMS

I would like to know if it is possible to use the ServiceWorker within an OctoberCms theme? Currently I created a file called serviceworker.js, and apparently it is being recognized, the doubt is being on the offline page, after all, how am I going…
Crazy
  • 346
  • 1
  • 4
  • 17
0
votes
4 answers

Can Octobercms Plugin conect to a flat file like xml

I am trying to make a plugin for octobercms that gets infomation from 2 xml files and I was wondering if the builder plugin was suitable to generate the files necessary to complete this task if so would it be the models file I would need alter so…
user2033464
  • 143
  • 1
  • 10
0
votes
1 answer

Is there any plugin event which can trigger before i log into the OctoberCMS Admin OR after the framework has dispatched the application

I am trying to develop a plugin functionality in which I want to echo something before anyone logs into OctoberCMS Admin? Is there any plugin event or anything available? In Joomla CMS there is an event called onAfterDispatch where the event is…
0
votes
1 answer

How to set up active theme for plugin test in October Cms

I'm trying to write a test for twig filter. To do that I need to load a theme from a fixture folder plugins/matchish/myplugin/tests/fixtures/themes/test Here how I set up the test class TwigTest extends PluginTestCase { public function setUp() …
Serhii Shliakhov
  • 2,631
  • 3
  • 19
  • 37
0
votes
1 answer

OctoberCMS DynamicPDF dynamic Header Content Text

I am using OctoberCMS DynamicPDF Plugin which is working absolutely fine as per my requirement. Howerver, I have dynamic PDF header text content and I am trying to Overwrite my Header Content but its not working. Here is what I have tried so far.…
0
votes
1 answer

How to create dependency dripdown in octobercms

My models are "term" and "location". Term depends on Location. Each location has 4 term wih different start_dates and finish_dates. Can anyone help me with this please?
Dapk
  • 203
  • 2
  • 10
0
votes
2 answers

Get input values from backend form [octobercms]

Everything is working fine in this code except $result = Input::get('term'); Someone please help me to get the input value of field term. When i do this $result = 8; everything works well. Form in plugin backend In my plugin "Lesson" model…
Dapk
  • 203
  • 2
  • 10
0
votes
1 answer

Monitor date and send email notification to users

I have created a plugin in OctoberCMS to store users information and products expiry date. I want to make Event fire when expiry date is close to current date and send email to the user, how can I monitor the date (should I use contrib shell…
Ya Basha
  • 1,902
  • 6
  • 30
  • 54
0
votes
1 answer

Get input value plugin octobercms backend

How to assign an input value to variable in plugins bacckend form. $termid = Input::get('term_id'); // this code doesn't work for me. namespace Cng\Tennis\Models; use Model; use Flash; use Db; use Input; class Lesson extends Model { public…
Dapk
  • 203
  • 2
  • 10