jomz / radiant-index-page-extension
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
ed3710d
commit ed3710d2103fbf657465ae0168fa05b89ee15fb3
tree b70ffe43d0cc0b414f34533407c3436aca57eccc
parent 318edf6faad87718a1c6b1d50c7e0827ab6c0b8c
tree b70ffe43d0cc0b414f34533407c3436aca57eccc
parent 318edf6faad87718a1c6b1d50c7e0827ab6c0b8c
| name | age | message | |
|---|---|---|---|
| |
LICENSE | Wed Jul 15 12:18:00 -0700 2009 | |
| |
README.markdown | Wed Jul 15 12:18:00 -0700 2009 | |
| |
Rakefile | Mon Aug 18 19:09:12 -0700 2008 | |
| |
app/ | ||
| |
index_page_extension.rb | ||
| |
lib/ | Mon Aug 18 19:09:12 -0700 2008 | |
| |
test/ | Mon Aug 18 19:09:12 -0700 2008 |
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
Sponsors
Some work has been kindly sponsored by:
License
This extension is released under the MIT license, see the LICENSE for more information.

