17 votes
Accepted

How to remove a language version of a data template?

Sitecore doesn't expose the version manager [you've shown] on templates. However, you can use the DB Browser (~/sitecore/admin/dbbrowser.aspx) and manage items, templates, etc. that way. Simply point ...
Brad Christie's user avatar
11 votes
Accepted

Compare item versions with Sitecore PowerShell Extension

I found some code from John West some time back and made that into a module on Github. You could take the below snippet I converted to PowerShell and make it a report. # Create a list of field names ...
Michael West's user avatar
  • 17.9k
10 votes
Accepted

Language version set to Unpublishable is not being removed from Web Database

There was a bug in earlier Sitecore 8.2, fixed in 8.2 Update 5 (rev. 170728) A deleted language version of an item in the master database exists in the web database after publishing.​ ​Smart ...
Marek Musielak's user avatar
  • 23.1k
8 votes

Many hours to delete 670 old versions of an item - Sitecore 7.2

If you use Sitecore PowerShell Extensions you can make this process faster by wrapping it in an EventDisabler SPE has a Remove-ItemVersion cmdlet that lets you select the language(s) versions and ...
Richard Seal's user avatar
  • 20k
7 votes

Can Sitecore add a new item version after publishing an item?

While this is technically possible (by hooking into the publish:end event), I think this might have some unexpected implications. Let me run you through a couple of examples. With workflow disabled: ...
Trayek's user avatar
  • 1,197
7 votes
Accepted

I deleted a page, but it still appears on the site. How can I delete this page?

Make sure to check "publish subitems" when publishing parent folder. To verify if the item was removed from the web database, switch to web database from Sitecore Desktop and see if your page is ...
Marek Musielak's user avatar
  • 23.1k
6 votes

How to remove a language version of a data template?

Another way to do this is using Sitecore Powershell Extenstions. There is a cmdlet called Remove-ItemLanguage, this removes the specified language version from the item. Example that removes the ...
Richard Seal's user avatar
  • 20k
6 votes

Force a new item version on save

Media items are created as Unversioned by default. Make sure that you have created a media item that uses the Versioned media template, e.g. /sitecore/templates/System/Media/Versioned/File. When you ...
jammykam's user avatar
  • 13.8k
5 votes
Accepted

One time delete of old versions

Consider retrieving the list of candidates for removal, comparing with the web database, then remove. This SSE answer provides a sample script at comparing version between master and web and showing ...
Michael West's user avatar
  • 17.9k
5 votes
Accepted

How to get value of version when we click in the Sitecore client?

To add on @Chris Auer answer, you may find below the code snippet showing where you should perform the change. You need to override the OnLoad method of the GalleryVersionsForm class from the ...
Hishaam Namooya's user avatar
4 votes

Sitecore image upload versioning in Media Library

When you upload a new picture you need to fill checkbox : Make media library versionable : More details you can find here: https://doc.sitecore.net/sitecore_experience_platform/content_authoring/...
Vlad Iobagiu's user avatar
  • 18.2k
4 votes

Get clicked version details in the Experience editor through programming in Sitecore SXA?

It's completely different in Experience Editor. When you click on any of the versions, there is a request to /-/speak/v1/ExperienceEditor/SelectVersion.js It builds an url for selected version, ...
Marek Musielak's user avatar
  • 23.1k
3 votes
Accepted

Force a new item version on save

From what I recall, you need a few things in place: Non-admin users (admins will bypass workflow) Two-step workflow (draft & final) that automatically approves on the save. This is the OOTB 'new ...
Jason St-Cyr's user avatar
  • 6,741
3 votes

Tagging Item Versions

Yes you can Tagging is a field that is stored as __Semantics and it is not shared between item versions. I ran a quick test. Version 2, untagged. Version 1, tagged And searching for this tag ...
Mark Cassidy's user avatar
3 votes
Accepted

Can I restore the Recycle Bin from a backup after using the Express Migration Tool?

Express migration tool does not migrate your old archived items, So your option here is to manually move these data in SQL tables, You can check this answer here where they used SQL queries to migrate ...
Ahmed Okour's user avatar
  • 2,124
3 votes

How to get value of version when we click in the Sitecore client?

The best I can see if to override the code beside for \sitecore\shell\Applications\Content Manager\Galleries\Versions\Gallery Versions.xml. It is currently set to Sitecore.Shell.Applications....
Chris Auer's user avatar
  • 13.1k
2 votes
Accepted

Item.Versions.AddVersion() - fields not being saved

So the problem was in the .EndEdit() call. By calling .EndEdit(false, true) you are essentially telling Sitecore two things: Do not update revision, revision date and so on. In other words, try and "...
Mark Cassidy's user avatar
2 votes

Automatic asset replacement at a fixed time

I don't think that is a correct solution for you to use Publishing Restrictions. Sitecore documentation: If you specify a date range for when an item or item version is publishable, it does not ...
Andrei Paliakou's user avatar
2 votes

Sitecore image upload versioning in Media Library

Sitecore supports to use Unversioned and Versioned templates for Media Items. All these templates you can find /sitecore/templates/System/Media Versioning for Media items the same as a standard items ...
Andrei Paliakou's user avatar
2 votes
Accepted

How to publish a specific version (not the latest) of an item?

You don't need to manipulate with workflow state of newer versions or with publishing restrictions. You can use Sitecore API and PublishOptions.PublishDate property. Just pass the datetime when your ...
Marek Musielak's user avatar
  • 23.1k
2 votes

How to publish a specific version (not the latest) of an item?

It is possible by playing with one of those two things: You can set the Publishable option of version 3 to false. If you have workflow configured in this item, you or the author can set the version 3 ...
Hugo Santos's user avatar
  • 2,281
2 votes
Accepted

Is it possible to show custom version label instead of regular Modified by label in version selector?

It is possible, but not simple. The dialog in your screenshot is located here: {webroot}/sitecore/shell/Applications/Content Manager/Galleries/Versions/Gallery Versions.xml And the code beside is: ...
Richard Seal's user avatar
  • 20k
2 votes
Accepted

Specific language version is being displayed as many times as number of versions

Your code loops over all the versions in the selected language: foreach (Sitecore.Data.Items.Item version in languageItem.Versions.GetVersions()) If you want to show only the latest version, just ...
Marek Musielak's user avatar
  • 23.1k
2 votes

Removing datasource version of the page when we remove page version in Sitecore 9.1.1

In terms of SXA then: How to remove a version of the data source on a single click of removing version of the page (associated version of the data source items). There is no such automation on the SXA ...
Dawid Rutkowski's user avatar
2 votes

Sitecore upgrade from Sitecore 10.0 to 10.1 - Can we upgrade without installing vanilla instance?

Other option to install it is to override the Sitecore 10 files with Sitecore 10.1 files. Looks like just files were changed in Sitecore 10.1 release. From my point of view is much more simpler to ...
Vlad Iobagiu's user avatar
  • 18.2k
2 votes
Accepted

Keeping old item versions

Instead of recycle bin you can choose to archive the item, as it won't delete the data but manage in a different way, sitecore have OOTB capability for it and you can get different modules and other ...
Rinku Jain's user avatar
1 vote

How does Sitecore Experience Editor deal with component items on a page when a new version of a page is created?

By default, when you apply a workflow on an item and it has been updated, a new version should be created for this item. As your page has a workflow and not your component datasource, it is the ...
Hishaam Namooya's user avatar
1 vote
Accepted

EN version is getting added for new item which is being created in any other language programatically

ItemManager.AddFromTemplate method creates an item with 1 version already. And from what I remember, it creates the child item in the language of the destination parameter (3rd one), where you pass ...
Marek Musielak's user avatar
  • 23.1k
1 vote
Accepted

Unable to sync page versions with Unicorn

As discussed in comments, should avoid serialising content that is in production and that is being used by content editors. The following is mentioned on Unicorns readme file on github. NOTE: ...
Anicho's user avatar
  • 1,419
1 vote

Can Sitecore add a new item version after publishing an item?

When a user creates an item, Sitecore creates a version in the current content language and initiates the workflow for that version. After that item completes its workflow, if a user edits the item in ...
Vlad Iobagiu's user avatar
  • 18.2k

Only top scored, non community-wiki answers of a minimum length are eligible