Questions tagged [octobercms-plugins]

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

315 questions
0
votes
1 answer

Email subscription form in octobercms

I am using Email Subscription Form plugin. When I enter the email address in the form and click the submit button, the submitted email appears in the url and it redirects to the same page. I did the configuration as mentioned in the documentation…
0
votes
1 answer

Email Subscription plugin in octobercms not working

I used this plugin in CMSpage. When the subscribe button is clicked no action is performed and redirects to the same page in which the formSubscribe component is added. The users are not added to the subscribers' list either. I added the…
0
votes
1 answer

octobercms backend form - Refresh form after fields change?

with builder plugin, I try to validate my form fields. I used filterFields() to check fields on the fly. Now I want to make some date validation before DB save. I used the following code to clear a field like in filterFields(). // Called before the…
Incremental
  • 27
  • 1
  • 8
0
votes
2 answers

How i can on October CMS use translate plugin after extend new fields to user plugin?

For my project i use User Plugin and Translate Plugin. I've added custom new fields to the user and now I want to translate them. I think I know why it does not work. But find no solution. Somebody to have idea? if i add to $model->translatable…
0
votes
1 answer

How to dynamically get on url the id on view page in OctoberCMS

i have on controller views page code this button: how i can get the id of this url ?
0
votes
1 answer

In Octobercms, Can someone tell me how to get a CMS page parsed content?

Can someone tell me how to get a CMS page parsed content ( html content without any {% component code %} or {% partial code %} ) in a Plugin boot method ? Thanks
Zakir hussain
  • 621
  • 3
  • 12
0
votes
1 answer

Creating Form With Relationship OctoberCMS

Let's say that I have a simple one to one relationship between to Models, User and Address. I'm attempting to extend the User (using the front-end User Rainlab plugin) to have such a relationship. I've suceeded in attaching the Address to the…
0
votes
2 answers

How can I use Model Factories in October CMS?

This is primarily for the sake of setting data up during testing; it appears that there is no official way in the documentation to get factories working as they do in the base Laravel Framework. How can I instantiate them so that I could, for…
Dakota Trotter
  • 310
  • 4
  • 8
0
votes
1 answer

Changing Backend Field Display Based on Relationship - OctoberCMS

I am using OctoberCMS along with the Rainlab Builder Plugin to create a plugin for a project of mine. I have two models, 'Page' and 'Template'. 'Template' has a one-to-many relationship with 'Page'. 'Template' has a boolean property 'Control'. What…
0
votes
1 answer

How to create my own module in October CMS?

I'm a newbie in OctoberCMS. My team is going to use OctoberCMS to create a dynamic website. I was tasked to create a simple module similar to eventbrite, like managing events and tickets. What is the best approach in developing such module? PS. All…
brt305
  • 7
  • 1
  • 5
0
votes
1 answer

Is there a way to Redirect with GET Parameters in October CMS?

I have a component which has an Ajax Handler. At the end of this handler I would like to redirect the user to a page with GET Parameters. Example: User goes to page www.example.com/hello He clicks on button with Ajax Handler onClicked() Users…
user10938426
0
votes
1 answer

How to use related model attribute as nameFrom value in relation form widget in OctoberCMS

In my plugin I have two models: Manager Office In office model I have relation: public $hasMany = [ 'managers' => [Manager::class, 'key' => 'office_id'], ]; Each manager belong to some office and related to backend user: public $belongsTo =…
0
votes
1 answer

Undefined table error: Extending User's Plugin

I am trying to extend the user's table to add more fields to it and i have this as my code in the php file in the updates folder.
Osuji Kingsley
  • 371
  • 3
  • 18
0
votes
1 answer

Only one record in plugin

I have a question. Is it possible for only one record to be created in the plugin? So in the backend, when I click on the backend menu, I get a form and not a list of records. If I click on side bakend menu "Fakty" on picture then I need it to be…
0
votes
0 answers

Sending Email Notifications for Service Expiry in OctoberCMS

I want to be able to send service expiry email notifications to my customers. Scenario 1: Company XYZ has subscribed for Service A which expires in 6 months. I would like the customer to receive notifications 3 months/1 month/1week and on day of…
h4kl0rd
  • 625
  • 1
  • 10
  • 23