Url
This field will store only valid urls. On top of that you can restrict urlto be certain domains or protocols
Constructor params
new FieldTypes.Url({ allowed_origins: ["https://www.youtube.com"], // will accept only youtube links allowed_protocols: ["https"] // will accept only https links })
Example
const app = new (class extends App { config = { /*...*/ }; manifest = { /*...*/ }; collections = { ...App.BaseCollections, url: new (class extends Collection { fields = { url: new FieldTypes.Url(params), }; })() }; })();
File Metadata
File Metadata
- Mime Type
- text/plain
- Expires
- Wed, May 7, 19:45 (1 d, 6 h)
- Storage Engine
- blob
- Storage Format
- Raw Data
- Storage Handle
- 629536
- Default Alt Text
- url.remarkup (660 B)