github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jomz / radiant-index-page-extension

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 3
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Tree: ed3710d

click here to add a description

click here to add a homepage

  • Branches (2)
    • master
    • pre-0.8
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.
  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Added LICENSE and updated README 
netzpirat (author)
Wed Jul 15 12:18:00 -0700 2009
commit  ed3710d2103fbf657465ae0168fa05b89ee15fb3
tree    b70ffe43d0cc0b414f34533407c3436aca57eccc
parent  318edf6faad87718a1c6b1d50c7e0827ab6c0b8c
radiant-index-page-extension /
name age
history
message
file LICENSE Wed Jul 15 12:18:00 -0700 2009 Added LICENSE and updated README [netzpirat]
file README.markdown Wed Jul 15 12:18:00 -0700 2009 Added LICENSE and updated README [netzpirat]
file Rakefile Mon Aug 18 19:09:12 -0700 2008 imported from svn [jomz]
directory app/ Loading commit data...
file index_page_extension.rb
directory lib/ Mon Aug 18 19:09:12 -0700 2008 imported from svn [jomz]
directory test/ Mon Aug 18 19:09:12 -0700 2008 imported from svn [jomz]
README.markdown

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.

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server