Hi! I’m following this document on how to upload files to the panel in a custom field. But I don’t understand how can I get a url to the current page in the panel instead of using a absolute path to a dir.
Below the example code. Thanks in advance!
The field has a model method ($this->model()) which refers to the current page object. The page object has a panelUrl method. So you should be able to use $this->model()->panelUrl()