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

Status:
Complete
Approver:
None
Priority:
Medium
Drafter:
None
Direction:
Approved
Assignee:
KaDMiO
Definition:
Approved
Series goal:
Accepted for v1
Implementation:
Implemented
Milestone target:
milestone icon alpha-3
Started by
KaDMiO
Completed by
KaDMiO

Sprints

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.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.