Hey there,
lets say I got a page under content/3_somepage/subpage/mypage.txt
. I want to get its path starting in content, eg 3_somepage/subpage/
- I checked the dump of $page, but for one, the numbered parent always appears without its number, and if the folder has a number (date string), I dont get that, too …
Help please!
// Edit:
What I got so far is this: $kirby->root('content') . '/3_somepage/' . $page->num() . '_' . $page->slug()
, but that doesn’t work for drafts …