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

linkID

  • 0kee
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
12 years 6 months ago - 12 years 6 months ago #1113 by 0kee
linkID was created by 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
Last edit: 12 years 6 months ago by 0kee. Reason: addition

Please Log in or Create an account to join the conversation.

More
12 years 6 months ago #1115 by julten
Replied by julten on 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();
The following user(s) said Thank You: 0kee

Please Log in or Create an account to join the conversation.

Moderators: JohnSmith
Time to create page: 0.527 seconds
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo