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
36
votes
2 answers

OctoberCMS Ajax Sort in the frontend

I am looking for the best practice in sorting a list in the frontend using ajax. So I have a component that loops through all the items. Then a sidebar with checkboxes to filter using Ajax. Each checkbox will be a category and will live a filter…
ServerSideSkittles
  • 2,713
  • 10
  • 34
  • 60
15
votes
2 answers

OctoberCMS How To Create Custom User Registration Form With Fields From Plugin Extension

I'm trying to learn OctoberCMS and I am confused about the complete process of extending plugins. I've extended the user plugin according to the screencast (https://vimeo.com/108040919). Ultimately, I'm looking to create a new field called…
user2694306
  • 3,832
  • 10
  • 47
  • 95
14
votes
1 answer

October CMS Reflection Exception on Z-Ray

When I load my October installation on a server with Z-Ray, I get this error: // used as resolvers for more fine-tuned resolution of these objects. if ($concrete instanceof Closure) { return $concrete($this, $parameters); } $reflector = new…
Félix Desjardins
  • 3,223
  • 3
  • 21
  • 36
13
votes
5 answers

how to check if today is between two dates in Twig?

I'd like to check if today's date is between two dates from the database. Here's my code. {% if today < room.price_start_date and today > room.price_end_date %}
12
votes
2 answers

How do I provide output to console when seeding or migrating tables?

I have a plugin in october and i'm creating the neccessary tables and seeding them per the docs. I wish to provide console output when doing that so I can debug the process i'm setting up and catching any eventualities. How can I output information…
Tschallacka
  • 27,901
  • 14
  • 88
  • 133
12
votes
4 answers

How do i get base url in OctoberCMS?

I want to show image in backend render list. For that how to get the path to show image. We have tried base_path() method. But it gives me full path like "opt/lampp/htdocs/ashish/" but i want to get http://localhost/ashish
Ashish Detroja
  • 1,084
  • 3
  • 10
  • 32
12
votes
2 answers

October CMS - How to correctly route

I've been reviewing the documentation for October CMS routing (https://octobercms.com/docs/plugin/registration#routing-initialization), but I think that I am missing something. I have a page called 'deals' that renders some basic information along…
user2694306
  • 3,832
  • 10
  • 47
  • 95
12
votes
1 answer

October CMS - sorting records - example of the partial for the toolbar icons?

I'm excited that the October CMS recently added back-end functionality for sorting records in the list view. But I'm having some trouble getting it to work. The documentation is here. I've followed the direction like so: In my controller, I…
clone45
  • 8,952
  • 6
  • 35
  • 43
11
votes
4 answers

How to convert a Twig array into JavaScript array

I have a Twig array and I want to send it to JavaScript: Error! Array to String Conversion. How should I do that?
ehsan
  • 209
  • 1
  • 4
  • 13
10
votes
1 answer

Binding parameter to Db::raw laravel query

I've got the following raw query: $results = Db::select( Db::raw("SELECT HOUR(created_at) as hour, COUNT(*) as count FROM `visited` WHERE created_at >= DATE_SUB(NOW(),INTERVAL 16 DAY) …
B Faley
  • 17,120
  • 43
  • 133
  • 223
10
votes
2 answers

Update user group OctoberCMS rainlab user plugin

How can I update change user's group? simply cant find it. spent couple hours. $user = new User; $user->group = 'new'; $user->save(); User is in relation with belongsToMany with Group. Not working. Thanks.
aleXela
  • 1,270
  • 2
  • 21
  • 34
10
votes
3 answers

OctoberCMS Post Form

My form:
I cant seem to get a form to post; where do I place this file? Which file do I edit to make it send the form data fields to…
T2T
  • 115
  • 1
  • 1
  • 6
9
votes
1 answer

OctoberCMS - How to make collapsible list default to active only on non-mobile

I have an OctoberCMS site and I am trying to hide a sidebar in a collapsible list so that when viewed on mobile the list item will be collapsed. When not on mobile I'm looking for it to be expanded as in the example…
user2694306
  • 3,832
  • 10
  • 47
  • 95
8
votes
8 answers

PHP Deprecated issue when running artisan command

Whenever I run an artisan command I am getting this issue. I am using Valet and PHP 8.1. I have tried changing versions of PHP but I still get this issue. When i run: jakefeeley@Jakes-MBP marketing % php artisan plugin:install…
Jakef19
  • 151
  • 1
  • 1
  • 7
8
votes
1 answer

Using a front end editor with static pages plugin

Im really new to ocms, I have installed static pages and its working really good. I want to edit the fields from the front page (in context editing) with one of the plugins, this for example: https://octobercms.com/plugin/netsti-editor I have…
SexyMF
  • 10,657
  • 33
  • 102
  • 206
1
2 3
99 100