Node Snippet Replace

Node Snippet Replace allows those with permission to create Node Snippets which can then be inserted into nodes.

Why Is This Useful?

Administrators can create a snippet of common content that a user with little technical knowledge can use when creating content.
How It Works

When a snippet is created, an actual file is created. When a node is loaded, Node Snippet Replace, through a hook uses Regex to find tags. ( {{tag-name}} )

The hook then replaces the tag with the content from the snippet. The content is cached for quick access.

http://drupal.org/sandbox/williamlang/1191940

Comments

andyf’s picture

Hi,

Do you think you could get the same effect by creating a content type node_snippets, and then using something like Node Reference/Embed Media Browser or InsertNode to insert the 'snippet' into a page/whatever?

klausi’s picture

Status: Needs review » Needs work

* there is a .gitignore~ backup file in the repository, remove it
* Don't mix "Implements hook_xxx()" and "Implementation of hook_xxx()", be consistent
* node_snippet_replace_schema() doc block has a newline next to the function, should be removed. Also on other functions in the module file.
* "Implements hook_schema" should be "Implements hook_schema()". Also on other hook doc blocks.
* "@see node_snippet_replace_menu" should be "@see node_snippet_replace_menu()"

misc’s picture

The applicant has been contacted to ask if the application is abandoned.

After ten weeks with a status of needs work: the applicant may be contacted by a reviewer to determine whether the application was indeed abandoned. The action taken by the reviewer should be documented in the project application issue.

http://drupal.org/node/894256

misc’s picture

Status: Needs work » Closed (won't fix)

The application has been closed. If you would like to reopen it, you are free to do so.
See http://drupal.org/node/894256#abandonedtwoweekscontact