Friendly 404
- Author: George Ornbo
- Source: Github
Compatibility
- ExpressionEngine Version 1.6.x
- PHP 5.x.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.
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 - limits entries to weblogs defined by their short name (default: show all weblogs)
{exp:friendly_404 weblog="news|jobs"}
Single Variables
{title}
{auto_path}
{url_title}
{count}
{total_results}
{weblog_id}
{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.
You can open a ticket over at Lighthouse. As this is free software the response time can vary.
# | Ticket | Milestone | Created at | Updated at | Status |
---|
Donations
Most of my software is free but I still need to eat and keep the wife happy.
If you use any software commercially please consider giving a donation.
Comments
blog comments powered by Disqus