Page MenuHomeDevCentral

Create a script to help to add a site in source templates generator
Closed, ResolvedPublic

Description

  1. Add an entry in pages/index.dat (the URL, a space, the class name)
  2. Create a new class on pages with the name of the class in lowercase (sic) as filename
<?php

/**
 * Represents a page from the %%url%% site.
 */
class %%class%% extends Page {
    /**
     * Analyses the page and extracts metadata
     */
    function analyse () {
        parent::analyse();

        //Here the logic for this specific page
    }
}