Creating of the In-Place editor for the 404 pages.

Created on 7 July 2012, about 12 years ago
Updated 24 July 2024, about 2 months ago

The idea was firstly described here.

It would be cool IMHO to add the following feature to Drupal. I will describe it on following concrete example:

  1. User enters the "/foo/bar/something" URI.
  2. System will check that the "create_page_here" mode is on.
  3. If mode is on the visual editor should be displayed similar to panels_ipe (Panels In-Place Editor). Using this editor user will be able to "Create Page here", assign some blocks/regions for this newly created page. It would be cool if user will be able change page title too by clicking on the page title (it can be done with helping of the jeditable plugin or by other way). The System will assign route (menu item) to that page internally when user will click the "Create Page here" button/link. It will be similar to wiki but for URIs.
  4. If mode is off the 404 page is displayed.
  5. After page creating if user will go to the "/foo/bar/something" page he should be able to see either In-Place Editor or the rendered page.

The 2 and 3 item can be implemented roughly like follows:

// This should be done in the 404 handler.
if (variable_get('create_page_here')) {
  echo l('Create page here', 'ipe/page/create');
  $ipe_js = '...';  // get JS here
  drupal_add_js($ipe_js);
}

Here is a very rough example of handler the "Create page here" link:

// The "Create page here" AJAX handler.
function create_page_here() {
  $uri = require_uri();
  // Create route/menu item for that particular URI
  $menu_item = create_menu_item_for_uri($uri);
  create_controller_for_menu_item($menu_item);
  drupal_json_output('ok');  
}
✨ Feature request
Status

Closed: won't fix

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated 25 minutes ago

Created by

πŸ‡ΊπŸ‡¦Ukraine hinikato

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024