7

You can achieve this by writing a Powershell script - https://michaellwest.blogspot.com/2014/10/sitecore-powershell-extensions-tip.html?_sm_au_=iVVB4RsPtStf5MfN Below PowerShell script is for finding media items without reference to any other item. Please have a look. <# .SYNOPSIS Lists all media items that are not linked to other items. ....


2

This would be basically the same as using a CDN. There is a config file for this in App_Config/Include/Examples/CDN.config.example Basically, the settings you are looking for are: Media.AlwaysIncludeServerUrl: Ensures that all media links will always include the full server URL Media.MediaLinkServerUrl: Specifies what the server URL (including the scheme ...


2

Currently sitecore is using the SelectMediaDialog component to display the values in the default view, this is defined in core database at /sitecore/client/Applications/Dialogs/SelectMediaDialog. More info about the media search page components and how they are added https://doc.sitecore.com/developers/speak/90/speak/en/walkthrough--create-a-search-page.html ...


2

You can implement a custom Sitecore.Resources.Media.MediaProvider. For example public class MediaProvider : Sitecore.Resources.Media.MediaProvider { public override string GetMediaUrl(MediaItem item, MediaUrlOptions options) { var url = base.GetMediaUrl(item, options); url = WebUtil.AddQueryString(url, "sc", "1");...


2

I always seemed to have problems with the PowerShell scripts so for our customer needs I created a simple .aspx script that can be accessible from CMS url. This script allows you to also pack the items you want to delete. For extra caution the items are move first in recycle bin, if everything goes well you can empty the recycle bin. txtRootId can point to ...


2

You can add your site to sitecore/mediaLibrary/requestProtection/ignoreSites config node. By default in 9.1.0 that setting is in App_Config\Sitecore\CMS.Core\Sitecore.Media.RequestProtection.config <sitecore role:require="Standalone or ContentDelivery or ContentManagement"> <mediaLibrary> <requestProtection> <!-- ...


1

To make a change in the JS file, Go to that particular JS item and select it. You'll see the option to download the file. Open the downloaded file, make changes and save it. Now go to the same item again in Sitecore and click on attach and select this file to upload. Note: You should not directly make changes in the Optimized JS file, this file is auto-...


1

For jss media you should override jss media handler and patch the same in the config public class ConvertImageToWebp : Sitecore.JavaScriptServices.Media.MediaRequestHandler{ protected override bool DoProcessRequest(HttpContext context, MediaRequest request, Media media){ if ((context?.Request.QueryString?["extension"]?.Contains("...


1

As mentioned here already, the Recycle Bin is keeping deleted files. If you want to change the pdf that is attached to the media item, you can detach it and attach a new one - this will change the pdf but the item (and the url) will stay the same. Info about the attach/detach can be found here: https://www.techguilds.com/Blog/2018/06/managing-the-sitecore-...


1

As far as I can see, you have pre-optimized-min item created under the folder to which you try to upload custom styles. Did you re-generate pre-optimize-min file after adding your custom one? If SXA will find pre-optimize-min file it will always take it and skip generation of normal optimize-min file. If you want to check if your styles will be included in ...


1

The following PowerShell script can be made available as a Web API endpoint within Sitecore. Instructions on how to do this are documented in the script: # Deploy Media Library artifacts # https://www.sergevandenoever.nl, https://www.linkedin.com/in/sergevandenoever/ # # Deploy Media Library artifacts from a given folder in the App_Data folder to Sitecore. # ...


1

To disable the above animation follow the below steps. Gallery rendering in SXA uses the Galleria JS library. Galleria component is initialized in the /sitecore/media library/Base Themes/Components Theme/Scripts/component-galleria script. You can edit this script to disable the full screen view on mobile devices: api.initInstance = function(component, prop) {...


1

The problem was caused by the default "Home" item being deleted. I removed it thinking it wasn't necessary since it has no child items and none of the sites pointed to this item as their root. Restoring the item from the Recycle Bin fixed the issue. Sitecore support also provided a package should it be needed. More info here: https://support....


1

Sitecore provides a cleanup agent to clear older media files, which clears media files every specified interval of time. By default it clears all media cache files created 90 days ago. See below settings in sitecore.config: <agent type="Sitecore.Tasks.CleanupAgent" method="Run" interval="06:00:00"> <!-- Specifies ...


1

1- Edit the file "...\sitecore\shell\Applications\Dialogs\MediaLink\MediaLink.xml" 2- Right below "alternate text", add: <Literal Text="My text:" GridPanel.NoWrap="true"/> <Edit ID="MyText" Width="100%"/> 3- Comment out the line: <CodeBeside Type="Sitecore....


1

For adding a custom attribute to the media link you can follow the approach in this blog post https://sitecorejunkie.com/2015/10/10/add-a-custom-attribute-to-the-general-link-field-in-sitecore/, which describes the exact steps required for adding it for internal link and general links. Based on your printscreen, if you would like to customize the media link ...


1

You wrote in your question: every image that starts with -/city I need to get the image from somewhere else In my opinion, if Sitecore has nothing to do with those urls, let's not even try to handle it by Sitecore. That's a waste of resources only. Instead, create a handler for -/city/* urls and register it in web.config. Something like this should do the ...


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