Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 479 Bytes

folder-setup.md

File metadata and controls

20 lines (13 loc) · 479 Bytes

Folder setup

A custom folder setup can be a perfect way to customize the urls for a plugin. Let's have a look at how it's done.

site.php in root of your installation:

$kirby = kirby();
$kirby->roots->foldername = $kirby->roots()->index() . DS . 'foldername';

Get it in a snippet or template like this:

echo kirby()->roots()->foldername();

Sources