# Tips and Tricks

**URL:** https://talk.octobercms.com/c/tips-and-tricks/6.md

[Latest](https://talk.octobercms.com/latest.md) · [Categories](https://talk.octobercms.com/categories.md) · [Tags](https://talk.octobercms.com/tags.md)

---

## [About the Tips and Tricks category](https://talk.octobercms.com/t/about-the-tips-and-tricks-category/27)

<div class="topic-metadata">

**Author:** [@daftspunk](https://talk.octobercms.com/u/daftspunk)\
**Replies:** 0

</div>

Development and configuration tips to improve your October CMS experience.

---

## [New Translatable Feature](https://talk.octobercms.com/t/new-translatable-feature/4104)

<div class="topic-metadata">

**Author:** [@martin.schaible](https://talk.octobercms.com/u/martin.schaible)\
**Replies:** 1\
**Last updated:** [November 4, 2026, 10:27am UTC](https://talk.octobercms.com/t/new-translatable-feature/4104 "2026-11-04T10:27:31Z")

</div>

Hello The new Translatable Feature is quite cool and i’m using it in my actual project. It makes my life a bit easier. Thanks

---

## [PHP(Storm) Formatting inside twig templates](https://talk.octobercms.com/t/php-storm-formatting-inside-twig-templates/3043)

<div class="topic-metadata">

**Author:** [@trader47](https://talk.octobercms.com/u/trader47)\
**Replies:** 4\
**Last updated:** [August 24, 2026, 10:30am UTC](https://talk.octobercms.com/t/php-storm-formatting-inside-twig-templates/3043 "2026-08-24T10:30:18Z")

</div>

Does anyone know how to get PHPStorm to recognize PHP inside the “==” tags? Seems like it’s not got the highest priority (opened 9 years ago) by PhpStorm themselves: https://youtrack.jetbrains.com/issue/WI-27668/Suppor…

---

## [OctoberCMS v3 and RocketLoader Work Around](https://talk.octobercms.com/t/octobercms-v3-and-rocketloader-work-around/911)

<div class="topic-metadata">

**Author:** [@responsive](https://talk.octobercms.com/u/responsive)\
**Replies:** 1\
**Last updated:** [August 13, 2026, 10:15am UTC](https://talk.octobercms.com/t/octobercms-v3-and-rocketloader-work-around/911 "2026-08-13T10:15:46Z")

</div>

If anyone with Cloudflare’s RocketLoader enabled has upgraded to October v3 and found that their admin dashboard is no longer working as expected, here are a couple of workarounds that may help. Refer to 3.2 Upgrade Wei…

---

## [Extending Rich Text Editor - dark/light background](https://talk.octobercms.com/t/extending-rich-text-editor-dark-light-background/4004)

<div class="topic-metadata">

**Author:** [@zemiak5](https://talk.octobercms.com/u/zemiak5)\
**Replies:** 0\
**Last updated:** [July 27, 2026, 9:24am UTC](https://talk.octobercms.com/t/extending-rich-text-editor-dark-light-background/4004 "2026-07-27T09:24:50Z")

</div>

Hi all, Sometimes you need to add white or very light text into form widget richeditor. I have added button which help switch from white background to black background. Use below code for Plugin.php inside boot() . ad…

---

## [Extending Rich Text Editor - custom default google font](https://talk.octobercms.com/t/extending-rich-text-editor-custom-default-google-font/4005)

<div class="topic-metadata">

**Author:** [@zemiak5](https://talk.octobercms.com/u/zemiak5)\
**Replies:** 0\
**Last updated:** [July 27, 2026, 9:32am UTC](https://talk.octobercms.com/t/extending-rich-text-editor-custom-default-google-font/4005 "2026-07-27T09:32:52Z")

</div>

Hi all, Sometimes I need add custom google fonts to form widget richeditor. Just to make better experience for editors. This is how I am adding google font and make it default in RTE. Add below code into one of your pl…

---

## [New Cookie Banner](https://talk.octobercms.com/t/new-cookie-banner/3759)

<div class="topic-metadata">

**Author:** [@martin.schaible](https://talk.octobercms.com/u/martin.schaible)\
**Replies:** 6\
**Last updated:** [June 19, 2026, 8:58am UTC](https://talk.octobercms.com/t/new-cookie-banner/3759 "2026-06-19T08:58:27Z")

</div>

Hello I needed a cookie banner that was GDPR (DSGVO in germany) compliant. I was about to start working on it, so I first asked the AI ​​I use in Visual Studio if it could find something ready-made. Instead, it whirre…

---

## [Working with Images](https://talk.octobercms.com/t/working-with-images/3904)

<div class="topic-metadata">

**Author:** [@mcore](https://talk.octobercms.com/u/mcore)\
**Replies:** 4\
**Last updated:** [May 18, 2026, 1:21pm UTC](https://talk.octobercms.com/t/working-with-images/3904 "2026-05-18T13:21:10Z")

</div>

Hi everyone, I’d like to start a discussion about working with images in OCMS, including SEO optimization, validation, upload restrictions, and compression. I’m interested in hearing about your approaches and the pros a…

---

## [AI Coding Tools and October CMS](https://talk.octobercms.com/t/ai-coding-tools-and-october-cms/3900)

<div class="topic-metadata">

**Author:** [@daftspunk](https://talk.octobercms.com/u/daftspunk)\
**Replies:** 0\
**Last updated:** [May 14, 2026, 11:06am UTC](https://talk.octobercms.com/t/ai-coding-tools-and-october-cms/3900 "2026-05-14T11:06:59Z")

</div>

Hey everyone, We just published a new article on the blog about something we think deserves a real conversation: How to Use AI Coding Tools Effectively with October CMS. The short version: AI coding agents perform dram…

---

## [Using defer for JS Bundle | Experiment | Performance](https://talk.octobercms.com/t/using-defer-for-js-bundle-experiment-performance/3234)

<div class="topic-metadata">

**Author:** [@mrmax](https://talk.octobercms.com/u/mrmax)\
**Replies:** 9\
**Last updated:** [October 31, 2025, 4:51pm UTC](https://talk.octobercms.com/t/using-defer-for-js-bundle-experiment-performance/3234 "2025-10-31T16:51:18Z")

</div>

Hi, It was mentioned in docs that it is good practise to put scripts in the head of the page with defer attribute. That gives a very good performance boost since the loading of the main scripts is not blocking the ren…

---

## [Using Laravel Factories](https://talk.octobercms.com/t/using-laravel-factories/796)

<div class="topic-metadata">

**Author:** [@alexwenzel](https://talk.octobercms.com/u/alexwenzel)\
**Replies:** 3\
**Last updated:** [September 3, 2025, 2:41pm UTC](https://talk.octobercms.com/t/using-laravel-factories/796 "2025-09-03T14:41:02Z")

</div>

Hi guys, This is just a simple note, how to use laravel 9.x model factories. In the past it was a bit harder and more unclear for me. More: Eloquent: Factories - Laravel - The PHP Framework For Web Artisans Lets go: …

---

## [Querying "jsonable" fields in your models](https://talk.octobercms.com/t/querying-jsonable-fields-in-your-models/629)

<div class="topic-metadata">

**Author:** [@daftspunk](https://talk.octobercms.com/u/daftspunk)\
**Replies:** 4\
**Last updated:** [April 24, 2025, 1:48pm UTC](https://talk.octobercms.com/t/querying-jsonable-fields-in-your-models/629 "2025-04-24T13:48:47Z")

</div>

Laravel supports JSON “where” clauses and other queries natively as per the documentation: Keep in mind a database is needed that supports JSON columns, which is MySQL 5.7 and MariaDB 10.2 onwards. You may also need t…

---

## [Custom selectors with Hot Controls](https://talk.octobercms.com/t/custom-selectors-with-hot-controls/1883)

<div class="topic-metadata">

**Author:** [@daftspunk](https://talk.octobercms.com/u/daftspunk)\
**Replies:** 1\
**Last updated:** [April 20, 2025, 3:42pm UTC](https://talk.octobercms.com/t/custom-selectors-with-hot-controls/1883 "2025-04-20T15:42:27Z")

</div>

When using hot controls it is expected to include data-control="mycontrol" to an element to bind it. Here are some helpful tips for working with this approach. Binding multiple controls Did you know you can bind multi…

---

## [GDPR Consent Banner](https://talk.octobercms.com/t/gdpr-consent-banner/2369)

<div class="topic-metadata">

**Author:** [@MateThemes](https://talk.octobercms.com/u/MateThemes)\
**Replies:** 10\
**Last updated:** [February 7, 2025, 10:22am UTC](https://talk.octobercms.com/t/gdpr-consent-banner/2369 "2025-02-07T10:22:43Z")

</div>

Hey there! I just want to ask the community, how to you deal with cookie consent, consent mode v2 by google and GDPR in general. I am currently working on a project where I use the gtag and as far as I know there is no…

---

## [Loading cached data](https://talk.octobercms.com/t/loading-cached-data/3209)

<div class="topic-metadata">

**Author:** [@zimple.digital](https://talk.octobercms.com/u/zimple.digital)\
**Replies:** 1\
**Last updated:** [February 4, 2025, 9:03pm UTC](https://talk.octobercms.com/t/loading-cached-data/3209 "2025-02-04T21:03:41Z")

</div>

Hi there, I am wondering which is better from a speed perspective when loading the same cached data from the database an using it in different places. Is it better caching all of the data in the database for that record…

---

## [Anyone using the code editor Nova App?](https://talk.octobercms.com/t/anyone-using-the-code-editor-nova-app/3130)

<div class="topic-metadata">

**Author:** [@chris](https://talk.octobercms.com/u/chris)\
**Replies:** 2\
**Last updated:** [January 10, 2025, 10:12am UTC](https://talk.octobercms.com/t/anyone-using-the-code-editor-nova-app/3130 "2025-01-10T10:12:54Z")

</div>

Anyone using the code editor Nova App out there ? facing so much issue with VS Code that I am looking at giving it a try maybe

---

## [Responsive images - srcset and picture tags](https://talk.octobercms.com/t/responsive-images-srcset-and-picture-tags/3050)

<div class="topic-metadata">

**Author:** [@MateThemes](https://talk.octobercms.com/u/MateThemes)\
**Replies:** 3\
**Last updated:** [November 15, 2024, 11:37am UTC](https://talk.octobercms.com/t/responsive-images-srcset-and-picture-tags/3050 "2024-11-15T11:37:57Z")

</div>

Hello everyone, i struggled in generally with srcset and picture tags. I never used before, but now with web vitals and modern image formats, it is a must have. So I created a setup with an image partial to generate my…

---

## [Override data-request-confirm to implement Sweet Alerts in AJAX](https://talk.octobercms.com/t/override-data-request-confirm-to-implement-sweet-alerts-in-ajax/2675)

<div class="topic-metadata">

**Author:** [@ridha82](https://talk.octobercms.com/u/ridha82)\
**Replies:** 2\
**Last updated:** [June 27, 2024, 7:22am UTC](https://talk.octobercms.com/t/override-data-request-confirm-to-implement-sweet-alerts-in-ajax/2675 "2024-06-27T07:22:23Z")

</div>

Hy Is it possible to override data-request-confirm to use sweetalert ‘https://sweetalert2.github.io’ instead of javascript alert ? Thanks

---

## [How to build Tags under Tailor](https://talk.octobercms.com/t/how-to-build-tags-under-tailor/2639)

<div class="topic-metadata">

**Author:** [@jubbot](https://talk.octobercms.com/u/jubbot)\
**Replies:** 2\
**Last updated:** [June 8, 2024, 9:23pm UTC](https://talk.octobercms.com/t/how-to-build-tags-under-tailor/2639 "2024-06-08T21:23:33Z")

</div>

I am thinking to reducing the amount of plugins and remove Blog, BlogHub (Tags and Post Count) and Custom Fields plugins. I followed the Tailor Blog Creation tutorial and had a go at creating Tags and so far I have writ…

---

## [Counter for textarea](https://talk.octobercms.com/t/counter-for-textarea/2487)

<div class="topic-metadata">

**Author:** [@MateThemes](https://talk.octobercms.com/u/MateThemes)\
**Replies:** 2\
**Last updated:** [April 17, 2024, 11:41am UTC](https://talk.octobercms.com/t/counter-for-textarea/2487 "2024-04-17T11:41:50Z")

</div>

Hey there, is there any way to count the value on a textarea field. For example I use a title and meta description and don’t want more than 250 characters. Is there a way to do that?

---

## [Recommended content for .gitignore file](https://talk.octobercms.com/t/recommended-content-for-gitignore-file/2311)

<div class="topic-metadata">

**Author:** [@vimre](https://talk.octobercms.com/u/vimre)\
**Replies:** 1\
**Last updated:** [March 1, 2024, 9:21pm UTC](https://talk.octobercms.com/t/recommended-content-for-gitignore-file/2311 "2024-03-01T21:21:16Z")

</div>

Dear All, Can I find the officially recommended .gitignore file for OctoberCMS projects that supports plugins, themes and tailor as well? Thank you, vimre

---

## [How to move a Slug field](https://talk.octobercms.com/t/how-to-move-a-slug-field/2294)

<div class="topic-metadata">

**Author:** [@9607801](https://talk.octobercms.com/u/9607801)\
**Replies:** 1\
**Last updated:** [February 29, 2024, 12:28am UTC](https://talk.octobercms.com/t/how-to-move-a-slug-field/2294 "2024-02-29T00:28:58Z")

</div>

Hello. Tell me how to move the Slug field to this place as shown in the screenshot?

---

## [Tailwind CSS Theme tutorial](https://talk.octobercms.com/t/tailwind-css-theme-tutorial/2216)

<div class="topic-metadata">

**Author:** [@gridmedia](https://talk.octobercms.com/u/gridmedia)\
**Replies:** 2\
**Last updated:** [February 9, 2024, 11:07am UTC](https://talk.octobercms.com/t/tailwind-css-theme-tutorial/2216 "2024-02-09T11:07:47Z")

</div>

Hi there, October CMS novice here, could someone point to a recent resource in creating a blog with October CMS using Tailwind CSS? Or creating a theme in general with tailwind. Many thanks Lee

---

## [Export records base on FilterScope to csv, json](https://talk.octobercms.com/t/export-records-base-on-filterscope-to-csv-json/1308)

<div class="topic-metadata">

**Author:** [@mcore](https://talk.octobercms.com/u/mcore)\
**Replies:** 4\
**Last updated:** [January 12, 2024, 7:24am UTC](https://talk.octobercms.com/t/export-records-base-on-filterscope-to-csv-json/1308 "2024-01-12T07:24:48Z")

</div>

Hi, I want to share my latest plugin creation work. The client needs to export records based on a filter from the list of records to csv. It needs to export the total records, based on the filter and based on the filter…

---

## [Adding a custom language to multisite](https://talk.octobercms.com/t/adding-a-custom-language-to-multisite/1937)

<div class="topic-metadata">

**Author:** [@daftspunk](https://talk.octobercms.com/u/daftspunk)\
**Replies:** 0\
**Last updated:** [November 6, 2023, 1:10am UTC](https://talk.octobercms.com/t/adding-a-custom-language-to-multisite/1937 "2023-11-06T01:10:16Z")

</div>

For the multisite feature, if a locale is not available in the predefined list: Scroll to the bottom of the language list Select — Use Custom — Enter the locale code manually Click Save I hope the helps someone out t…

---

## [How to Install October CMS to an existing Laravel application](https://talk.octobercms.com/t/how-to-install-october-cms-to-an-existing-laravel-application/65)

<div class="topic-metadata">

**Author:** [@daftspunk](https://talk.octobercms.com/u/daftspunk)\
**Replies:** 4\
**Last updated:** [October 2, 2023, 4:42pm UTC](https://talk.octobercms.com/t/how-to-install-october-cms-to-an-existing-laravel-application/65 "2023-10-02T16:42:27Z")

</div>

A guide to installing October CMS 3 atop an existing Laravel 9 application. The significant steps involve replacing Laravel’s Illuminate package with October’s Rain package, which represents an extended technology versio…

---

## [Using dependsOn in a form with sidebar](https://talk.octobercms.com/t/using-dependson-in-a-form-with-sidebar/1812)

<div class="topic-metadata">

**Author:** [@daftspunk](https://talk.octobercms.com/u/daftspunk)\
**Replies:** 0\
**Last updated:** [September 29, 2023, 11:18pm UTC](https://talk.octobercms.com/t/using-dependson-in-a-form-with-sidebar/1812 "2023-09-29T23:18:19Z")

</div>

There is a minor issue when using the traditional sidebar layout with a form. Each set of fields is encapsulated in its own container and cannot use dependsOn across each container. You can solve it with the following m…

---

## [Security Question for Rainlab Users](https://talk.octobercms.com/t/security-question-for-rainlab-users/1737)

<div class="topic-metadata">

**Author:** [@LordRazen](https://talk.octobercms.com/u/LordRazen)\
**Replies:** 2\
**Last updated:** [September 14, 2023, 8:33pm UTC](https://talk.octobercms.com/t/security-question-for-rainlab-users/1737 "2023-09-14T20:33:15Z")

</div>

I just configure my Rainlab User installation. It’s a pity Rainlab Users does not provide reCaptcha support for registration out of the box, but in order to make it a bit harder for bots, I thought a security question mi…

---

## [Efficiently reloading JavaScript functionality after AJAX requests in backend?](https://talk.octobercms.com/t/efficiently-reloading-javascript-functionality-after-ajax-requests-in-backend/1692)

<div class="topic-metadata">

**Author:** [@wouter](https://talk.octobercms.com/u/wouter)\
**Replies:** 1\
**Last updated:** [September 2, 2023, 6:23am UTC](https://talk.octobercms.com/t/efficiently-reloading-javascript-functionality-after-ajax-requests-in-backend/1692 "2023-09-02T06:23:56Z")

</div>

I’m working on a plugin in OctoberCMS where I utilize the Select2 library to transform dropdowns into comboboxes, allowing users to input custom values. This works as expected on initial page load and when I add new fiel…

---

## [How to Update October v1 to v2/v3 with Deploy plugin](https://talk.octobercms.com/t/how-to-update-october-v1-to-v2-v3-with-deploy-plugin/369)

<div class="topic-metadata">

**Author:** [@maki3000](https://talk.octobercms.com/u/maki3000)\
**Replies:** 1\
**Last updated:** [August 15, 2023, 10:00am UTC](https://talk.octobercms.com/t/how-to-update-october-v1-to-v2-v3-with-deploy-plugin/369 "2023-08-15T10:00:10Z")

</div>

Hello, I thought, I will make a short instruction here on how to update october v1 to v2 with deploy plugin, because I experienced some issues, which got solved with the help of the october team. I thought, I could shar…

[Next page](https://talk.octobercms.com/c/tips-and-tricks/6.md?page=1)
