Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use page unique IDs #28

Open
Daandelange opened this issue Feb 1, 2023 · 4 comments
Open

Use page unique IDs #28

Daandelange opened this issue Feb 1, 2023 · 4 comments

Comments

@Daandelange
Copy link
Owner

Daandelange commented Feb 1, 2023

Now, slugs are used in SimpleStats, Kirby has a new page UID system.

  • Page UIDs seem not to be enabled by default in Kirby, how to keep compatibility with both ?
  • Provide a migration tool, probably move to a new DB file version ?
  • Currently nums are mistakenly stored in the slug : Do we need to remove them too ? (tracking probably breaks when page-sorting changes).
@DominiqueVial
Copy link

Hi there,

Please do not rely on Kirby UUID as some doesn't use them by design.

@Daandelange
Copy link
Owner Author

Hi, can you explain that a little further ? To me, they seem more reliable then slugs.

@DominiqueVial
Copy link

Hi,

The use of UUIDs is not mandatory with Kirby: it is an option: plugin must therefore provide for this case by considering that UUIDs are not used.

UUIDs (universally unique identifiers) are an additional way to refer to any model in Kirby – be it a page, a file or a user.

You can modify the UUID format or completely disable UUIDs using the content.uuid option in the config file.

https://getkirby.com/docs/guide/uuids#config-settings

@Daandelange
Copy link
Owner Author

Ok, thanks for sharing these thoughts, I'll keep them into consideration. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants