Questions tagged [octobercms]

October is a free, open-source, self-hosted CMS platform based on the Laravel PHP Framework. It allows developers to have full self-expression and the freedom to build web applications however they want. It is a productivity tool for building modern websites based on flexible patterns and principles rooted in simplicity.

October is a Content Management System (CMS) and web platform whose sole purpose is to make your development workflow simple again. CMS uses as a foundation . The platform is open-sourced software licensed under the MIT license.

1601 questions
4
votes
3 answers

October CMS how to get current locale name?

Could you tell me please how i can get current language name or somthing like this. I want customize Locale Switcher on web site based on October CMS. It will be greate to recevie something like ... {{ set var = ****.getLocale();}} ... then use it…
Ye K
  • 143
  • 2
  • 9
4
votes
2 answers

laravel set attribute won't append to json key

I have a loop setting some json values. if (isset($product->customfields)) { foreach ($product->customfields as $customfield) { $fieldId = $customfield['custom_field_id']; // Grab custom field template…
ServerSideSkittles
  • 2,713
  • 10
  • 34
  • 60
4
votes
1 answer

Get image path from database and display on the frontend (Octobercms)

this is my page page.htm (Markup) - I manage to get the image name but I can't get the image source Jason's Image {{ file_name }} // working {{ avatar_id }} // not…
BEX
  • 187
  • 4
  • 21
4
votes
1 answer

How do I call a component inside a component [OctoberCMS]

I want to call a component inside a component with a variable, like this: Here's the code of the default.html->
Ricardo Cruz
  • 117
  • 10
4
votes
2 answers

I can't do a foreign key, constraint error

I'm having a commum error and I can't go over it, know as [Illuminate\Database\QueryException] SQLSTATE[42000] here is the full error: [Illuminate\Database\QueryException] SQLSTATE[42000]: Syntax error or access violation: 1064 You have an…
Ricardo Cruz
  • 117
  • 10
4
votes
5 answers

How to register middlewares in OctoberCMS plugin?

Registering middlewares in Laravel is easy: simply list the middleware class in the $middleware property of your app/Http/Kernel.php class or If you would like to assign middleware to specific routes, you should first assign the middleware a…
B Faley
  • 17,120
  • 43
  • 133
  • 223
4
votes
2 answers

How to disable assets combining on development in OctoberCMS

October CMS offers handy functionality to combine js/css assets. In my layouts/default.htm I have scripts defined like that: