You are here

README.txt in jEditable inline content editing 7

Same filename and directory in other branches
  1. 8 README.txt
  2. 6.2 README.txt
  3. 6 README.txt
jEditable inline editing module


Installation:

1. Place this module in your favorite modules directory (i.e., sites/all/modules/)
2. Download the jEditable jQuery plugin from http://www.appelsiini.net/download/jquery.jeditable.mini.js
     If you're in *nix and in the module directory, you can use this:
     wget http://www.appelsiini.net/download/jquery.jeditable.mini.js
3. Enable the module
     If you're at the command line, then hopefully you have drush you can use:
     drush en jeditable
4. Turn on the "use jeditable" permission for all rolls you want to have access to jeditable operations.
     The module respects basic node access, so saving using jeditable will only work if the user has "update" permissions on the node.
     However, if they don't have update permissions, they will still get the jeditable input forms, so this needs some thought for your application.
5. Go to the "display settings" of your node, or into the display settings for a view with fields in it and
     enable the jEditable textfield, jEditable textarea, jEditable datetime or jEditable noderefence fields as appropriate
6. Finally, load a node, "click to edit", and enjoy!



Instructions for Workflow integration

If you have the workflow module, you can use jeditable to change workflow statuses. It won't show up anywhere
by default, but you can place it in .tpl.php files by using the following theme function:

theme('jeditable_workflow', $node);

You can also use the computed_field module to get this to show up as a field in views and elsewhere. Use
the following snippets.

For "Computed Code":
$node_field[0]['value'] = workflow_get_state_name($node->workflow);

For "Display format":
$display = theme('jeditable_workflow', $element['#node']);

For Data type, select "varchar" and set data length to 60 (or whatever you set as maximum length for workflow state names)

What this will do is store the workflow state name in the database so that you can use this in views and sort by state name.
What is then displayed is themed jeditable select drop down.

File

README.txt
View source
  1. jEditable inline editing module
  2. Installation:
  3. 1. Place this module in your favorite modules directory (i.e., sites/all/modules/)
  4. 2. Download the jEditable jQuery plugin from http://www.appelsiini.net/download/jquery.jeditable.mini.js
  5. If you're in *nix and in the module directory, you can use this:
  6. wget http://www.appelsiini.net/download/jquery.jeditable.mini.js
  7. 3. Enable the module
  8. If you're at the command line, then hopefully you have drush you can use:
  9. drush en jeditable
  10. 4. Turn on the "use jeditable" permission for all rolls you want to have access to jeditable operations.
  11. The module respects basic node access, so saving using jeditable will only work if the user has "update" permissions on the node.
  12. However, if they don't have update permissions, they will still get the jeditable input forms, so this needs some thought for your application.
  13. 5. Go to the "display settings" of your node, or into the display settings for a view with fields in it and
  14. enable the jEditable textfield, jEditable textarea, jEditable datetime or jEditable noderefence fields as appropriate
  15. 6. Finally, load a node, "click to edit", and enjoy!
  16. Instructions for Workflow integration
  17. If you have the workflow module, you can use jeditable to change workflow statuses. It won't show up anywhere
  18. by default, but you can place it in .tpl.php files by using the following theme function:
  19. theme('jeditable_workflow', $node);
  20. You can also use the computed_field module to get this to show up as a field in views and elsewhere. Use
  21. the following snippets.
  22. For "Computed Code":
  23. $node_field[0]['value'] = workflow_get_state_name($node->workflow);
  24. For "Display format":
  25. $display = theme('jeditable_workflow', $element['#node']);
  26. For Data type, select "varchar" and set data length to 60 (or whatever you set as maximum length for workflow state names)
  27. What this will do is store the workflow state name in the database so that you can use this in views and sort by state name.
  28. What is then displayed is themed jeditable select drop down.