FILE_EDITOR_HTML

[[FILE_EDITOR_HTML:label|filename]]

Parameters:

label (string with no spaces)

filename (string containing relative path to file)

 

The example below embeds a rich text item html snippet file editor on the node landing page which can allow the user to edit the file ../datafile.txt which is located in the node’s parent folder. Paths are relative to the node’s location. Not for editing complete web pages. Label may contain no spaces because it is also used as an html identifier for the form. Underscores may be used as spaces and will be stripped out in the display.

[[FILE_EDITOR_HTML:Rich_Text_Edit|../datafile.txt]]

 

file_editor_html

 

Expand the editor by pressing the blue button on top right.

 

file_editor_html_expanded

 

Save will submit form and refresh the parent iframe.

 

Note: This shortcode will only function on landing page while user is logged in with administrator privileges for security reasons. It will not work on any unsecured public page but is intended only for secured dashboards, back office and maintenance modules.

 

Leave a Reply