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

shapeshed / friendly_404.ee_addon

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 10
    • 0
  • Source
  • Commits
  • Network (0)
  • Downloads (2)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (2)
    • 2.0
    • 1.0
Sending Request…
Click here to lend your support to: friendly_404.ee_addon and make a donation at www.pledgie.com ! Edit Pledgie Setup

Pledgie Donations

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

Suggests relevant weblog entries on a 404 page — Read more

  cancel

http://shapeshed.github .com/expressionengine/plugins/friendly_404/

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

This URL has Read+Write access

updates to docs 
George Ornbo (author)
Sun Nov 29 14:18:27 -0800 2009
commit  a85e667bc35729af302e3b8c10d7c48813337ca7
tree    6f74bd5fd36956afd6b027d24516c6fb64f23113
parent  2b77ba2b7ad2500844dcc4d687694771d09c6196
friendly_404.ee_addon /
name age
history
message
file README.markdown Sun Nov 29 14:18:27 -0800 2009 updates to docs [George Ornbo]
directory system/ Sun Nov 29 14:12:55 -0800 2009 folder structure for EE 2.0 [George Ornbo]
README.markdown

Friendly 404 - Suggests relevant weblog entries on a 404 page

Author: George Ornbo Source: Github

Compatibility

  • ExpressionEngine Version 1.6.x (1.x.x releases), ExpressionEngine Version 2.0.x (2.x.x releases)
  • PHP 5.x

License

Friendly 404 is free for personal and commercial use.

If you use it commercially use a donation of $10 is suggested. You can send donations here.

Friendly 404 is licensed under a Open Source Initiative - BSD License license.

Installation

This file pi.friendly_404.php must be placed in the /system/plugins/ folder in your ExpressionEngine installation.

For EE 1.6.x the file pi.friendly_404.php must be placed in the /system/plugins/ folder in your ExpressionEngine installation.

For EE 2.0.0 the friendly_404 folder must be placed in the /system/expressionengine/third_party/ folder in your ExpressionEngine installation.

Name

Friendly 404

Synopsis

Returns suggestions of weblog entries on a 404 page.

Description

The plugin attempts to match entries to the last segment of the 404 URL helping users to find pages that match what they were looking for.

Add the following to your 404 template

{exp:friendly_404}
    {if count == 1}<ul>{/if}
        <li><a href="{auto_path}">{title}</a></li>
    {if count == total_results}</ul>{/if}
{/exp:friendly_404}

If no match is found nothing will be shown

Parameters

The following parameters are available:

limit - limits the number of entries returned (default: 5)

{exp:friendly_404 limit="10"} 

weblog (ExpressionEngine 1.6.x) - limits entries to weblogs defined by their short name (default: show all weblogs)

{exp:friendly_404 weblog="news|jobs"} 

channel (ExpressionEngine 2.x) - limits entries to weblogs defined by their short name (default: show all channels)

{exp:friendly_404 channel="news|jobs"}

Single Variables

{title}
{auto_path}
{url_title}
{count}
{total_results}
{weblog_id} (EE 1.6.x)
{channel_id} (EE 2.x)
{search_results_url}

Examples

{exp:friendly_404 limit="10"}

Only 10 results will be returned

{exp:friendly_404 weblog="news|services"}

Only results from the news and services weblogs will be returned

License

Friendly 404 is licensed under a Open Source Initiative - BSD License license.

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