Giter Site home page Giter Site logo

extension-hello's Introduction

Hello Extension

A blueprint to develop your own extensions.

This code showcases the available possibilities for extension developers. This is not an extension that attempts anything useful for the user. It is merely intended as an example for developers to copy and paste. We have tried to write extensive comments in the code. Pull requests for improvements are always appreciated.

Basically, you can use this extension in 3 different ways:

  1. To use this extension as a starting point for your own package, copy it into your vendor folder inside the packages directory, i.e. from packages/pagekit/extension-hello to packages/your-vendor/my-extension (details in the documentation). From the code that you now have, you can remove anything that you do not need.
  2. Create an extension from scratch and just copy and paste any snippets you want.
  3. Just browse this code to understand how developing for Pagekit works.

When you get started with extension development, make sure to also read the Extension Guide in the Pagekit documentation.

This extension showcases a variety of things you can do with an extension inside Pagekit. Some of these are:

  • Register a controller to a static route
  • Register a controller to a dynamic node for the Site Tree
  • Add a menu item to the admin interface
  • Create a settings screen
  • Work with module configuration
  • Create a Vue component
  • Work with permissions
  • Run install, uninstall and update scripts: scripts.php

extension-hello's People

Contributors

janschoenherr avatar malte-christian avatar saschadube avatar steffans avatar

Watchers

 avatar

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.