Home > radiant-index-page-extension

radiant-index-page-extension

Radiant-index-page-extension is a project mainly written in Ruby, based on the View license.

Radiant Index Page Extension

Author Benny Degezelle - Gorilla Webdesign
Version 0.1.0
Contact: benny AT gorilla-webdesign DOT be

About

This is for indexes that have no content for themselve.

For example, a site may be structured like so to keep things organised and clean:

/about
/about/history
/about/team
/about/objective

Now it is very possible that there is no content for the 'index' page on /about.

With this extension you just make the page on /about an IndexPage, which will...

  • redirect your visitors to it's first published child (default setting)
  • renders the content of the first published child under the parent url

Settings

Per default an index page redirects to it's first published child.

The above example with the default setting:

/about           -> Redirect to /about/history and thus show history page
/about/history   -> Show history page
/about/team      -> Show team page
/about/objective -> Show objective page

You can change this behaviour by setting the 'index.page' configuration to 'include'.

Radiant::Config["index.page"] = 'include'

This renders the first published child under

  • its own url
  • under the url of its parent

The above example with the default setting:

/about           -> Show history page
/about/history   -> Show history page
/about/team      -> Show team page
/about/objective -> Show objective page

Contributors

  • Michael Kessler

Sponsors

Some work has been kindly sponsored by:

  • Gorilla Webdesign
  • Screen Concept

License

This extension is released under the MIT license, see the LICENSE for more information.