Allow the TextWidget to load it's content from external files.
Registered by
KaDMiO
This new functionality avoids the need to remake a mask each time the TextWidgets content is modified, while also avoiding the usage of the Database in small websites.
Blueprint information
Whiteboard
Add a new option to the constructor: $load_from_file which is set to default to false.
Add a new option to the constructor: $file_path which is set to default to null.
Add a new property to the TextWidget class: $LOAD_FROM_FILE
Add a new property to the TextWidget class: $FILE_PATH
The $file_path parameter just needs the file name and extension. The file has to be in AEData/Content.
If the file is not present during execution, a panic2 is launched informing it. The content provided when the Widget is created is used if the file is not found.
(?)