getkirby / kirby

Kirby's core application folder
https://getkirby.com
Other
1.31k stars 168 forks source link

Consistent page path/id methods #4489

Open distantnative opened 2 years ago

distantnative commented 2 years ago
Method Description Example Alternative?
$page→dirname() full directory name with num and uid 2_project-b $page→dirname()
$page→diruri() full path with sorting num und uid 1_projects/2_project-b $page→dirpath()
$page→id() path with uid projects/project-b $page→path(false)
$page→uri() path with translated slugs projekte/projekt-b $page→path($lang)
$page→uid() slug but always untranslated project-b $page→slug(false)
$page→slug() folder name or translated slug projekt-b $page→slug($lang)
$page→uuid() UUID with schema page://12345678-90ab-cdef-1234-567890abcdef  

We should try to pave the path in Kirby 3.8, meaning

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. This is for us to prioritize issues that are still relevant to our community. It will be closed if no further activity occurs within the next 14 days. If this issue is still relevant to you, please leave a comment.