Giter Site home page Giter Site logo

bc-knowledge-hub's Introduction

Business Comparison Knowledge Hub

Dependencies/Plugins

  • Rainlab.Blog is used to create, edit and manages the articles and categories of the BC Knowledge Hub.
    • To access the CMS part of the plugin, visit /backend/rainlab/blog/posts
    • When creating a new post, a title, (auto-generated) slug, and category must be assigned before publishing the article. If no category is chosen, the article will not appear.
      • When publishing an article, the date is required but time is set as the current time.
      • Any of these fields can be edited at any time, even post-publish.
    • A new category can be added at any time, and all pages will update to reflect this.
      • However, for correct display of the icon on the homepage, CSS rules must be added and icons added to the assets folder.
      • The CSS rules and icon names are based on the category slug.
    • The article can be formatted using standard markdown formatting
      • The in-built controls can be used to add images, videos, audio and documents.
    • The tag-line of the category is set by the description field of the category in the October CMS side.
  • Offline.SiteSearch is used to search the articles for keywords. It also generates the search results page.
    • It has been slightly modified to allow for correct URL generation regarding categories.

Installation

Run composer install in the root directory

Edited Plugin Files:

These were changed to return custom Rainlab.Blog post results containing the category for correct URL creation. If either plugin is updated, ensure that the changes listed below remain unchanged to allow search functionality.

  • plugins/offline/sitesearch/classes/providers/RainlabBlogResultsProvider.php
    • Edited search function just to check for isInstalledAndEnabled flag
      public function search() {
          if ( ! $this->isInstalledAndEnabled()) {
              return $this;
          }
      }
      
  • plugins/rainlab/blog/Plugin.php
    • Added use CustomBlogSearchProvider;
    • Added offline.sitesearch listener to return custom provider
      Event::listen('offline.sitesearch.extend', function () {
           return new CustomBlogSearchProvider();
      });
      

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.