October CMS resources and help articles

Simple and to the point. Optimized by the community.

Deploy with backend brand settings

8
by larryb, last modified on August 28th, 2019

This trick will allow you to deploy your site with backend brand settings already configured (and its pretty easy too)!

When deploying your site, the backend brand will be set to October defaults which requires a login to the backend to update things like the logo, tag line and colors.

  1. Create a new file in your app's config directory: config/brand.php
  2. Paste the block of code below into your brand.php file:
<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Specify the default backend brand settings
    |--------------------------------------------------------------------------
    |
    | These parameter values can be overridden by the backend Brand settings
    |
    */

    'logoPath' => '$/author/plugin/assets/images/logo.png',
    'faviconPath' => '$/author/plugin/assets/images/favicon.ico',
    'appName' => 'APP NAME',
    'tagline' => 'APP TAGLINE',
    'primaryColor' => "#b4b4b4",
    'secondaryColor' => "#ffcc00",
    'accentColor' => "#B4B4B4",
];
  1. Update the values relative to your application. Note the image paths must be relative to your filesystem and not a URL.

I want to thank @LukeTowers for pointing this functionality out to me.

Discussion

1 comment

0
gavinworks
Post on November 23rd, 2019 10:16 AM

Just what I was looking for! Thank you! Although I think the backend uses .png for the favicon?

We use cookies to measure the performance of this website. Do you want to accept these cookies?