2017 © Pedro Peláez
 

silverstripe-module silverstripe-amp

Module for converting SilverStripe Pages to Google AMP HTML

image

thezenmonkey/silverstripe-amp

Module for converting SilverStripe Pages to Google AMP HTML

  • Wednesday, March 23, 2016
  • by thezenmonkey
  • Repository
  • 3 Watchers
  • 15 Stars
  • 242 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 9 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

SilverStripe AMP HTML

Converts pages to Google Amp HTML. For more information about AMP HTML see Google AMP Project Homepage., (*1)

Requirements

  • SilverStripe 3.2.x

Installation

Composer (recommended):, (*2)

composer require thezenmonkey/silverstripe-amp, (*3)

If you prefer you may also install manually:, (*4)

  • Download the module from here LINK
  • Extract the downloaded archive into your site root so that the destination folder is called silverstripe-amp, opening the extracted folder should contain _config.php in the root along with other files/folders
  • Run dev/build?flush=all to regenerate the manifest

Usage

The module automatically adds a link to your MetaTags pointing to the AMP HTML version of the page http://yousite.com/page-name/amp.html., (*5)

A custom controller then renders your content using an AMP HTML version of the Page Template. <img /> tags are automatically converted to <amp-img /> before render., (*6)

Themes and Custom Page Types

The base Page type is Amp.ss, which can be overidden in your theme like any SilvserStripe Template. Custom Page Types can be rendered using ClassName_amp.ss in your theme., (*7)

To Do

This is an initial commit as proof of concept as such * Add Base Styling to Match Simple Theme * Create Modular Schema System * Add Configurable Scripts for Common Amp Components, (*8)

The Versions

23/03 2016

dev-master

9999999-dev http://github.com/thezenmonkey/silverstripe-amp

Module for converting SilverStripe Pages to Google AMP HTML

  Sources   Download

BSD-3-Clause

The Requires

 

google silverstripe mobile amphtml