Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 331 Bytes

url.md

File metadata and controls

17 lines (11 loc) · 331 Bytes

Panel 2 - Url

Get panel root uri

Not sure if it will work in all cases but it returns panel if not changed:

echo str_replace(kirby()->urls()->index() . '/', '', panel()->urls()->index());

Get panel root url

To get the panel root url from inside a field, do this:

echo panel()->urls()->index();