Here are two buttons, one for including nodes and one for including fields.
You enter a node type and all node names appear in a drop down button.
You enter a textfield name and all fields (which contain a value) appear in the drop down button.
Installation:
1) Attached archive: Import the buttons via BUEditor's import function and copy the Javascript file to your BUEditors Javascript folder (default: modules/bueditor/library/).
2) Since per default they are embedded by NodeID, you need both RepTag module + additional tags to make it work:
http://drupal.org/project/reptag
#318039: Embed node title & field values
3) Define the node type and field name for the buttons at bueditor settings. (if you want to have more than one node type/field, create a new button).
Have fun and post bugs if you find some, please. Field button works only with textfields.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | bueditor_buttons_nodefield.zip | 2.18 KB | Roi Danton |
| bueditor_buttons_nodefield.zip | 2.16 KB | Roi Danton |
Comments
Comment #1
Roi Danton commentedBugfix:
- wrong variable in node button fixed.
- fixed sql query so it is compatible with all field types
New feature:
Field button: The node title of the field is now displayed after the field to avoid confusion if fields have same content.
Install as described above.
Comment #2
Roi Danton commentedI've written a module that supports BUEditor and those tags. So RepTag isn't needed anymore and these files at this topic are obsolete. If you want to include nodes/fields/terms in your texts and want to have buttons for this task, go for Linodef.
Comment #4
marcoka commentedas i do not get the description of Linodef, linodef does what you described above? meaning adding a button to add nodes via autocomplete?