An entry is a structure which holds content through use of an EntryLanguageApi which
can exist for any of the project's languages.
Constructor
Variables
read onlyfilepath:String
The filepath that is used by this entry to store newly uploaded images/files
read onlyinherit_filepath:Bool
Uses the filepath of the parent entry if set or empty filepath if root
read onlylocked:Bool
This entry can only be removed by admins and is forced to always have a published version
read onlyorder_by:OrderBy
Can be: "alpha" for alphabetical order, "date" to sort on date, or "default" to let the user sort
Methods
addFile (path:String):FileApi
Add a file. The file should be placed in the storage and path looks like "storage/projectName/myFile.pdf"
getTitle (?lang:String):String
Get the entry title for a given language, if lang is null a title of one of the existing translations is returned
setLocked (bool:Bool):EntryApi
Set this entry can only be removed by admins and is forced to always have a published version
setSetting (setting:String, value:JSONValue):EntryApi
Set one of the settings of EntrySettings for this entry