How to Add A Custom Field to A Page In October CMS?

7 minutes read

To add a custom field to a page in October CMS, you can follow these steps:

  1. Open your October CMS project and navigate to the backend area.
  2. In the main menu, click on "Pages" to access the page management section.
  3. Select the page to which you want to add a custom field.
  4. In the page editor, click on the "Fields" tab located at the top.
  5. Here, you will find a list of existing fields on the page. Click on the "Add field" button.
  6. A modal window will appear with various field types to choose from. Select the appropriate field type based on your needs.
  7. Once you select the field type, a new set of options will be displayed.
  8. Provide a name for the field in the "Field name" input box. This name will be used to access the field value in the template.
  9. Configure any other options relevant to the field such as label, validation rules, default value, etc.
  10. Click on the "Create" button to add the custom field to your page.
  11. The field will now be visible on the page editor. You can rearrange its position by dragging and dropping it.
  12. Remember to save the changes made to the page.

By following these steps, you can easily add a custom field to a page in October CMS. These custom fields can be used to store additional information specific to each page, enhancing the capabilities and versatility of your October CMS website.

Best October CMS Hosting Providers in 2024


Rating is 5 out of 5


  • Ultra-fast Intel Core
  • High Performance and Cheap Cloud Dedicated Servers
  • 1 click install Wordpress
  • Low Price and High Quality
Digital Ocean

Rating is 5 out of 5

Digital Ocean

  • Active Digital Community
  • Simple Control Panel
  • Starting from 5$ per month

Rating is 5 out of 5



Rating is 5 out of 5


What is a template in October CMS?

A template in October CMS is a file that defines the structure and layout of a web page. It contains HTML and optional PHP code, along with special markup tags that allow developers to include dynamic content. Templates in October CMS are typically used to create the front-end layout of pages and are often organized into reusable components. They can be customized and extended to create unique designs and functionality for a website.

What is a component in October CMS?

In October CMS, a component is a reusable piece of code that encapsulates HTML markup, PHP logic, and CSS styles. It is used to create and manage dynamic content and functionality within a website or application.

Components are created using the Laravel framework's Blade templating engine, and they can be easily added to pages or layouts in a website. Each component can have its own properties, methods, and data, allowing for flexibility and customization.

Components in October CMS follow the concept of separation of concerns, where HTML markup is separated from PHP logic, making it easier to maintain and update the code. They can be used to create simple elements like forms, menus, or sliders, as well as complex elements like blogs or e-commerce modules.

How to create a dropdown/select field in October CMS?

To create a dropdown/select field in October CMS, you can follow these steps:

  1. Define the field in a migration file: Open the migration file for the table you want to add the field to. Add the field using the select method of the Schema builder. For example: public function up() { Schema::table('your_table', function($table) { $table->string('dropdown_field')->nullable(); }); }
  2. Create a form field in the CMS backend: Navigate to the CMS backend and go to the page where you want to add the dropdown/select field. Click on the "Content" tab and select "Add Form Widget". In the widget configuration, select the field type as "Dropdown". Configure the options for the dropdown field, such as the label, name, and available options.
  3. Render the dropdown field in the frontend: Open the relevant page or partial file where you want to display the dropdown field. Use the form_dropdown or form_select Twig function to render the dropdown field. For example: {{ form_dropdown('dropdown_field', options_array, { prompt: 'Select an option' }) }} Replace options_array with an array of options for the dropdown, such as ['Option 1', 'Option 2', 'Option 3'].
  4. Save and test: Save your changes and navigate to the page in the frontend. You should now see the dropdown/select field rendered and be able to select options from it.

What is the purpose of custom fields in October CMS?

The purpose of custom fields in October CMS is to allow users to define and manage additional data fields for their website or application. This feature provides a way to extend the default set of predefined fields provided by October CMS, allowing users to store and retrieve custom data specific to their needs. Custom fields can be added to various entities in October CMS, such as pages, blog posts, products, and more, enabling developers to create flexible and customizable websites or applications.

What is the purpose of the media manager in October CMS?

The purpose of the media manager in October CMS is to provide a centralized location for managing and organizing media files. It allows users to easily upload, edit, and delete media files such as images, videos, and documents. The media manager also provides features like sorting, filtering, and searching to help users find and manage their media assets efficiently. Additionally, it offers options to generate thumbnails, resize images, and control access permissions for media files, making it a comprehensive tool for handling media files within the October CMS platform.

What is the purpose of layouts in October CMS?

The purpose of layouts in October CMS is to provide a consistent structure and design for multiple pages in a website. A layout acts as a blueprint or template for pages and includes the common components, such as header, footer, navigation menu, and sidebars.

With layouts, developers can create a unified look and feel across different pages, ensuring a cohesive user experience. They also simplify the process of managing and updating common elements across multiple pages, as changes made to the layout will be reflected on all pages that use it.

Layouts in October CMS help in separating the content from the design, making it easier to maintain and update the website. Additionally, layouts allow for reusability, as multiple pages can use the same layout, saving development time and effort.

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

Related Posts:

To create a custom form in October CMS, you can follow these steps:First, you need to create a new plugin in October CMS. Plugins are used to extend the functionality of the CMS.Inside your plugin, create a new file for your form. This can be done in the "...
To install October CMS, follow these steps:First, you need to have a web server with PHP and MySQL installed. Make sure that your server meets the system requirements for October CMS.Download the latest version of October CMS from their official website.Extrac...
In October CMS, you can use cron jobs to automate repetitive tasks or scheduled actions. Cron jobs are widely used in web development to run scripts or commands at specific intervals.To use cron jobs in October CMS, you need to follow these steps:Create a new ...