Closed pozylon closed 7 months ago
Can't you utilize the metada of a page for this?
And the use the pages api:
/api/pages/pages?filter={"_meta.customId":"MyId"}&limit=1
Oh wow i didn't know that hidden meta option of the pages, it only shows up when i filter explicitly for it. Cool, that's it.
It would be awesome to have a technical id that can be set on a per-page base for developers, so I can fetch a certain page with an id like "forgot-password" or "home" and i don't have to take care of having slug's in sync.
Using the id of the page automatically set by cockpit comes with it's own issues, for example when I hardcode it in code and the page gets re-created.