Questions tagged [octobercms-backend]

275 questions
1
vote
2 answers

What can be the reason why Mail::send in Octobercms cuts the HTML tags from richeditor?

I am using the Mail::send service to send an email from a contact form. The body of the email is HTML, provided with the richeditor. I have a template 'my.plugin::mail.default': subject = "Overwritten" ==

Hi {{ name }},

{{message_body |…
STB
  • 35
  • 1
  • 4
1
vote
1 answer

I want to make an input in the admin panel with which you can increase / decrease prices in several tables in db by %

I want to make an input in the admin panel with which you can increase / decrease prices in several tables in db by %. At the moment, I did it through a filter { return [ new TwigSimpleFilter('price_kiev', [$this,…
1
vote
2 answers

Command "october:migrate" is not defined

I must add table to existing octobercms project and added migration but it is not migrating. what may be problem? when I type php artisan october:migrate I faced with this problem Command "october:migrate" is not defined. Did you mean one of…
1
vote
3 answers

OctoberCMS belongsTo relationship saving problem

I have two models: Brands Mods I can display all brands via belongsTo function. Problem is when I try to save same brand two times, I get error duplicated entry. This belongsTo is causing duplicated entry error when saving to DB two same…
1
vote
0 answers

How to use Laravel Grid View with October CMS on fronted page?

I'm am using Octobercsm as a content management system that built on Laravel. I need to use Laravel Grid View on fronted page ( reference : http://laravel-grid.herokuapp.com )
1
vote
1 answer

Using backend forms in frontend - OctoberCMS

I have a form in the back-end to create new entries. I want to allow my website's front-end users to create these entries as well, so since I already have such form and the controller in the back-end, I'd like to utilize it in the front-end as…
1
vote
1 answer

On Octobercms frontend sort blog menu items at Descending

Octobercms blog plugin has a function that Register menu items for the RainLab.Pages plugin: public function boot() { /* * Register menu items for the RainLab.Pages plugin */ Event::listen('pages.menuitem.listTypes', function()…
Charis
  • 117
  • 2
  • 4
  • 12
1
vote
2 answers

HasOne relation form doesn't update model

I extends model Lovata\Buddies\User adding vendor relation. From backend form, I can create a new Vendor model and field commission is added fine. But if I update field value, the process show all fine, but the record is never updated in db. There…
alvaro.canepa
  • 562
  • 3
  • 13
1
vote
0 answers

Repeater in repeater causes data loss after reordering

We are using the blocks method where a repeater renders blocks. In these blocks we use repeaters again, so we have repeater in a repeater. In some cases when changing the order of repeater blocks the data of those blocks disappear which causes the…
1
vote
2 answers

Octobercms Builder - How to write validation code for backend form and modify fields

I am new to this fantastic October after 10 years of Joomla and would like to continue on it. I'm using the great Builder plugin and would like to have 'complex' validations in back-end with 'create' or 'update' forms. After many time browsing the…
Incremental
  • 27
  • 1
  • 8
1
vote
1 answer

October cms file attachment with only path?

I'm a new in October CMS. Now i have an issue with file attachment. In Model : public $attachOne = [ 'cover_image' => ['System\Models\File'] ]; Now in controller : $comic = Comic::with('cover_image)->find($id); it return: { "id":…
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

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

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

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 2
3
18 19