The place for more technical questions for those who want to create new pagetypes or bespoke functionality.

linkID

  • 0kee
  • Onderwerp Auteur
  • Offline
  • Senior lid
  • Senior lid
Meer
12 jaren 6 maanden geleden - 12 jaren 6 maanden geleden #1113 door 0kee
linkID werd gestart door 0kee
How does Xerte generate the unique linkID for each page (for example linkID="PG1389703757358")
I notice they are not consecutive, is there a convention to naming them?

The reason I ask is if I create a page directly in the data.xml how do I come up with a linkID? I also want to move some pages from one LO to another. If I do a straight copy/paste will the linkID need to be changed?
Thanks,
Karl
Laatst bewerkt 12 jaren 6 maanden geleden door 0kee. Reden: addition

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
12 jaren 6 maanden geleden #1115 door julten
Beantwoord door julten in topic linkID
It's the number of milliseconds since Jan 1 1970. If you want to create one, use the same formula
'PG' + new Date().getTime();
De volgende gebruiker (s) zei dank u: 0kee

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Moderators: JohnSmith
Tijd voor maken pagina: 0.197 seconden
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo