Code Monkey home page Code Monkey logo

silverstripe-base's Introduction

SilverStripe 4 Base

By default, SilverStripe lack some really common stuff I find myself doing in most of my websites. This module aims to provides basic functionnalities that can be easily used on a website.

This module is under heavy work in progress, things breaks and will change. Use at your own risks.

Requirements

  • SilverStripe ^4.1
  • Use public folder

Installation

You can install this module with Composer:

composer require lekoala/silverstripe-base

If you install this as a git submodule don't forget to adjust your autoloader

"autoload": {
    "psr-4": {
        "App\\": "app/src/",
        "LeKoala\\Base\\": "src/",
        "LeKoala\\Base\\Test\\": "tests/"
    },
    "classmap": [
        "app/src/Page.php",
        "app/src/PageController.php"
    ]
},

Also you may need to adjust your default app/_config/mysite.yml to make sure base module is loaded first

---
Name: myproject
After:
- '#base-extensions'
---
SilverStripe\Core\Manifest\ModuleManifest:
    project: app
SilverStripe\Control\Email\Email:
    admin_email: [email protected]
# If you use bootstrap 4
SilverStripe\CMS\Model\SiteTree:
    extensions:
        - LeKoala\Base\Extensions\BootstrapPageExtension

This also applies to your theme.yml

---
Name: mytheme
After:
- '#base-theme'
---

Features

Common pages

  • Contact Page with Google Map support
  • FAQ Page
  • Simple News system (if you need a more complex solution, use the Blog module)

Extended DataObject actions

Now provided by lekoala/silverstripe-cms-actions

Themable sites

Make sites themable through the SiteConfig and offer support for variables in your css files.

See docs/Theming.md for documentation.

New or improved db field types

Need for country, color fields? Yes! Should your enums map labels to a static method? Yes! Should your scaffolding use better input fields? Sure! :-)

Forms

Lots of new form fields.

See docs/Forms.md for documentation.

Alerts

Define sessionMessage on your controller and display messages using Alertify library

Dev tools

Now provided by lekoala/silverstripe-devtoolkit

Maintainer

LeKoala - [email protected]

License

This module is licensed under the MIT license.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.