2017 © Pedro Peláez
 

silverstripe-module silverstripe-pagejax

Adds partial page loading using ajax

image

symbiote-library/silverstripe-pagejax

Adds partial page loading using ajax

  • Saturday, February 10, 2018
  • by symbiote-library
  • Repository
  • 7 Watchers
  • 7 Stars
  • 2 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

IMPORTANT

This module is no longer actively maintained, however, if you're interested in adopting it, please let us know!, (*1)

Pagejax module for SilverStripe

Adds partial page loading using ajax., (*2)

Installation

Follow the standard SilverStripe module installation procedure, (*3)

Requirements

You must have jquery included in your page, (*4)

Usage

Cuurently we need to modify Page_Controller and add the following method, (*5)

    public function getViewer($action) {
        $viewer = parent::getViewer($action);
        $this->extend('updateViewer', $action, $viewer);
        return $viewer;
    }

Modify your main Page.ss template and change, (*6)

    $Layout

to, (*7)

    <div class="pagejax-container">$Layout</div>

Then, any link you want to loaded internally needs to have the pagejax class applied, ie, (*8)

    <a href="some/internal/page" class="pagejax">Internal page</a>

To customise the way the page transitions in and out, you can bind to the window.pagejaxStart and window.pagejaxComplete events, eg, (*9)

    $(window).bind('pagejaxStart', function () { });

To change the page title on each refresh, specify an ajaxTitle() method on your Page_Controller class; otherwise, the page title will not be chanaged., (*10)

The module does take into account CSS and JS added using Requirements:: by parsing out relevant headers, (*11)

The Versions

10/02 2018

dev-master

9999999-dev

Adds partial page loading using ajax

  Sources   Download

BSD-3-Clause BSD License

The Requires

 

ajax silverstripe

10/02 2018

1.0.2

1.0.2.0

Adds partial page loading using ajax

  Sources   Download

BSD-3-Clause

The Requires

 

ajax silverstripe

29/06 2017

1.0.1

1.0.1.0

Adds partial page loading using ajax

  Sources   Download

BSD License

The Requires

 

ajax silverstripe

23/06 2017

1.0.0

1.0.0.0

Adds partial page loading using ajax

  Sources   Download

BSD License

The Requires

 

ajax silverstripe