├── .editorconfig ├── README.md ├── entryinstructions ├── EntryInstructionsPlugin.php ├── fieldtypes │ └── EntryInstructions_InstructionsFieldType.php └── templates │ └── _instructions │ └── layout.html └── screenshot.png /.editorconfig: -------------------------------------------------------------------------------- 1 | # http://editorconfig.org 2 | 3 | # Top-most EditorConfig file 4 | root = true 5 | 6 | # All files 7 | [*] 8 | charset = utf-8 9 | insert_final_newline = true 10 | 11 | [*.{js,json}] 12 | indent_size = 4 13 | indent_style = space 14 | trim_trailing_whitespace = true 15 | 16 | [*.{scss,css}] 17 | indent_size = 2 18 | indent_style = space 19 | trim_trailing_whitespace = true 20 | 21 | [*.{html,php,rb,xml}] 22 | indent_size = 4 23 | indent_style = space 24 | trim_trailing_whitespace = true 25 | 26 | [*.md] 27 | indent_style = tab 28 | trim_trailing_whitespace = false 29 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Entry Instructions Plugin for Craft CMS 2 | ================= 3 | 4 | Inspired by [NSM Publish Hints](http://ee-garage.com/nsm-publish-hints). 5 | 6 | ### Installation 7 | 8 | Upload the entryinstructions/ folder to your craft/plugins/ folder. 9 | 10 | ### Usage 11 | 12 | 1. Create a new field 13 | 2. Set the Field Type to "Instructions" 14 | 3. Write your instructions in Markdown 15 | 16 | ### Screenshot 17 | 18 | Screenshot of Instructions in Control Panel 19 | -------------------------------------------------------------------------------- /entryinstructions/EntryInstructionsPlugin.php: -------------------------------------------------------------------------------- 1 | templates->formatInputId($name); 15 | 16 | // Figure out what that ID is going to look like once it has been namespaced 17 | $namespacedId = craft()->templates->namespaceInputId($id); 18 | 19 | return craft()->templates->render('entryinstructions/_instructions/layout', array( 20 | 'name' => $name, 21 | 'id' => $id, 22 | 'value' => $value 23 | )); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /entryinstructions/templates/_instructions/layout.html: -------------------------------------------------------------------------------- 1 | 59 | -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thomasthesecond/EntryInstructions/41e53d8aaf9fbbd36ef3951b642c919964b63152/screenshot.png --------------------------------------------------------------------------------