Welcome, Guest
Username: Password: Remember me
The place for more technical questions for those who want to create new pagetypes or bespoke functionality.
  • Page:
  • 1

TOPIC:

linkID 10 years 3 months ago #1113

  • 0kee
  • 0kee's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 73
  • Thank you received: 0
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

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

Last edit: by 0kee. Reason: addition

linkID 10 years 3 months ago #1115

  • julten
  • julten's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 137
  • Thank you received: 18
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.

  • Page:
  • 1
Moderators: JohnSmith
Time to create page: 0.045 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search