Giter Site home page Giter Site logo

magazineassets's Introduction

MagazineAssets Plugin - FlipBuilder integration with CraftCMS:

Background

I ran into a problem whereby I needed to incorporate a magazine into a CraftCMS website that had been generated using a neat bit of software by the name of 'FlipBuilder'. This would be a regular thing, so I was hoping I'd simply be able to drag and drop the outputted files into the templates folder and that it would magically work.

It didn't. So I wrote this plugin. The full story and more info can be found on my blog.

Install Instructions

Drag this plugin into your craft/plugins folder

Update your config/general.php file to look something like this:

Replace the contents of files/magazines/july-2018/files and files/magazines/july-2018/mag with the exported files from FlipBuilder. Feel free to update july-2018 to an issue name/number/date of your choice, just make sure that the folder inside craft/templates/magazines matches this name. Once the files/magazines/july-2018/files and files/magazines/july-2018/mag folders have files in them the .gitkeep files can be removed.

<?php
    return [
    	// etc.
        'environmentVariables' => [
            'internalAssetsPath' => CRAFT_BASE_PATH . "../files/",
        ]
    ];
?>

Notes

If you want to run the magazine from another place then move the location of the index.html template and update the Plugin registerSiteRoutes method to match the location.

magazineassets's People

Contributors

jamesnock 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.