Is there any way to get Content Version #8307
Replies: 4 comments 6 replies
-
What do you mean by version friendly number? |
Beta Was this translation helpful? Give feedback.
-
The It's not a The If you want to have some sequential versioning for display in the front end ui somewhere for some reason, you could use a number field, and increment the value in a content handler when a new version is published. Or use a date, or just use the |
Beta Was this translation helpful? Give feedback.
-
Should be a combination of ContentItemVersionId + CreatedUtc to be able to sort by date to keep the proper historical order. Question is then, what you need a Version (incremental) number for? Explain your use case in details. Else, I think the data we have is appropriate for doing almost everything. |
Beta Was this translation helpful? Give feedback.
-
@dalenewman Thank you for your explanation ,I also always thought that Version property was the Version number.. @Skrypt |
Beta Was this translation helpful? Give feedback.
-
https://orcharddojo.net/orchard-resources/Library/Wiki/Versioning
I noticied that in db the table [dbo].[Document] already as a version field but seems that show "1" even when I had a published version and a draft version.
Is there any way to has a version friendly number in orchard?
Beta Was this translation helpful? Give feedback.
All reactions