Closed (won't fix)
Project:
Search 404
Version:
master
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2007 at 21:29 UTC
Updated:
12 Jan 2008 at 12:17 UTC
If the search is fruitless, or actually the person is an admin of some sort and wants to add a new page, its nice to have a link. If you have the prepopulate module, something as simple as this at the end of the search404_page function is just about all you need:
if (user_access('administer nodes') ) {
$output .= "
".t("Add a new page for this URL")." (".$_REQUEST['destination'].")
";
}
Comments
Comment #1
markfoodyburton commentedSorry - here's the code
Comment #2
forngren commentedThis will probably now be implemented for a while. The UI is already mesed up. That is, if not someone steps up makes a good patch/diff.
You could perhaps usehttp://drupal.org/project/wikitools
Comment #3
forngren commentedThat should of course read
This will probably not be implemented for a while.
Comment #4
zyxware commentedIt might not make sense to add a new node for an erroneous URL or when a URL alias is incorrectly typed. If it is a URL alias you would not have any idea as to what type of node it is. So I think that this does not have to be added to this module. If you disagree please do explain why.