Questions tagged [octobercms-plugins]

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

315 questions
0
votes
1 answer

Access to OctoberCMS page in code?

I have a Static Page in OctoberCMS named General that has a bunch of site-wide settings including phone number and address. Is it possible to access this page in code to read these settings from its ViewBag? UPDATE: a plugin was created with the…
0
votes
2 answers

OctoberCMS global page properties?

Is it possible to set a series of global properties (such as social media usernames) that are available to all page views in OctoberCMS rather than having them associated to one CMS page or Static Page at a time? For example, being able to use {{…
0
votes
0 answers

use model in other model by RelationController but no record view , October CMS

i have managed to put form and list in the same page by reviewing this but after data insert to database, it did not show in the list i have implement these to controller public $implement = [ 'Backend\Behaviors\ListController', …
0
votes
1 answer

accessing media manager with different user persmissions

I built a plugin to store post image using media finder widget, and I set two roles admin and data-entry, when I'm accessing the backend with admin user I can add posts and images. But when I access the backend with data-entry user and when I click…
Ya Basha
  • 1,902
  • 6
  • 30
  • 54
0
votes
1 answer

trying to get array value from models. octobercms

i am having trouble retrieve value of an array in Model. so i have model which has repeater field. now i am trying to access the value of that repeater field from another model. this is what i have done.. UPDATED fields.yaml in WartaDataProfil…
0
votes
1 answer

Put form and list in the same page on backend

Is it possible to put form and list in the same page on octobercms backend..? since the form is too short and many area left empty.. thats why i have this in mind.. fields.yaml only contain three fields..
0
votes
1 answer

OctoberCMS: how to set repeater widget autoload / populate value for new records

can i set the repeater widget to auto load when the form open? it has max item property, can it auto load to max item number so user dont need to hit the prompt button re-updated this my fields.yaml fields: nowarta: label: 'No. Warta' …
0
votes
1 answer

Show only parent_id names on octobercms backend form

I use locations using nested tree and use a "parent" field to select parent location (that i created using reorder records). But i need "parent" field to show me only parents, only locations with parent_id equals to NULL. On location model…
Charis
  • 117
  • 2
  • 4
  • 12
0
votes
1 answer

Octobercm Backend List maximum limit of selections

I am developing a library system, Octobercms, and I need to limit the maximum number of books for each loan, for example: 2. So that when you reach the number of selections, do not allow me to select more books for that loan. see the image: Backend…
0
votes
1 answer

Octobercms Possible to update multiple Models in one Controller?

As the title suggests, is it possible to update multiple models in one controller? I am using Builder Plugin to deal with things. As I can see we can only choose one 'Base Model' when I create a controller. How do we do it? Also a side question. I…
warmjaijai
  • 991
  • 4
  • 13
  • 30
0
votes
1 answer

October CMS - AJAX Form submit from 1 component to another

I am making a website in October CMS. i created 1 components lets say Component_1 & Component_2 Now, i want to post data from Component_1 to Component_2 through form [via AJAX data-attributes APi] So, in my component_1 i have a Form:
0
votes
1 answer

OctoberCMS Reset ReportWidget Property(ies)

I would like to reset the properties for my ReportWidget one of two ways: 1) When the page containing the report widget is refreshed or 2) When certain properties are changed My ReportWidget has 3 properties: year, quarter, month By default, I am…
0
votes
1 answer

How can I load JavaScript files in back-end side for plugins TO footer instead of header

I need to add some on my JS script on footer instead of header since I want to use some things after DOM loaded. I've already used the core function addJs('script url') there is no parameter to choose where to include JS scripts.
Taha Azzabi
  • 2,392
  • 22
  • 31
0
votes
2 answers

Trigger Ajax request on settings page

I'm writing a plugin that have some fields defined in backend settings. One of that field is a partial that contain a button, that trigger an Ajax request thanks to the data-attribute API.
0
votes
1 answer

October cms long load time for query

I'm trying to optimize this nested query which takes a very long time to load. The basic idea is to get all the series that belong to a department, in the middle the're products that belong to many departments and many series. the table…
adam
  • 618
  • 2
  • 11
  • 31