This sub-module creates a prepopulated link to a create node. It is used primarily as a failover for the Nodetitle plugin for Freelinking. When this module is enabled, the failure option “Add a link to create content” is added to the failover pull down menu for Nodetitle.

The following items will be inherited from the the parent node and used to prepopulate the new node:

Note: Taxonomy term and OG context does not work and is currently disabled.

For example, the following freelink: [[nodetitle:Does not exist]], produces:

<a class="freelink freelink-createnode notfound freelink-internal" title="node/add/article" href="/node/add/article?edit%5Btitle%5D=Does%20not%20exist&parent=836">Does not exist</a>

Here, the parent=836 identifies the book the new node shall be part of.

Requirements

Requires Prepopulate.

Recommended modules

Installation

  1. Install as you would normally install a contributed drupal module. See: “Installing modules” for further information.
  2. Configure the module at Administration » Configuration » Content authoring » Freelinking settings. There should be a panel headed “Freelinking_prepopulate Plugin Settings”, and a new option (“Add a link to create content”) added to the failover menu for Nodetitle.

API and utilities

For API functions and examples of their use, see freelinking_prepopulate.api.php.

The Freelinking Prepopulate Utilities (freelinking_prepopulate.utilities.inc) are intended to help with the centralized definition of form fields that may be of interest for Prepopulate-based plugins, and automating the process of extracting information for such fields.

Maintainers

Any help with development (patches, reviews, comments) are welcome.