4
votes
Accepted
Media handle hash not being generated
Media Request Protection only kicks in when it needs to. It is designed to prevent media specific parameters from being manipulated (e.g. specifying a MaxWidth for an image of 10248000, forcing ...
2
votes
Accepted
Add query string to all Media item in Sitecore SXA 9.3
You can implement a custom Sitecore.Resources.Media.MediaProvider.
For example
public class MediaProvider : Sitecore.Resources.Media.MediaProvider
{
public override string GetMediaUrl(MediaItem ...
2
votes
Sitecore 9.3 Render MediaUrls by displayname with UseDisplayName from MediaUrlBuilderOptions
I have tried with a vanilla 9.3 and it seems that UseDisplayName isn't taken into consideration at all. I have looked in the MediaUrlBuilder implementation and it seems that UseDisplayName is ...
2
votes
Accepted
Sitecore media with AlwaysAppendVersion set to true adds the revision to -1 for non default language versions
Post some investigation noticed that sitecore adds this rev=-1 whenever there is no language version for the media item in the current language scope !!
Although it was a recommended practice for ...
2
votes
Accepted
Display filename with extension using FileField in Sitecore
Yes, it is possible. You already have MediaItem object. So I can think of 2 ways to get the filename with an extension.
1. Using MediaUrlBuilderOptions get the full URL and split it to get the ...
2
votes
Update Sitecore ImageField with Media Item from Content Hub
Figured out how to solve this myself so I wanted to post this in case anyone else needs help with this. I realized that the FieldItems are just xml so I created a new ImageField and then added the ...
1
vote
Accepted
Change ItemNotFoundUrl Setting in sitecore
While using SXA, there is a handler for transferring the request when media item is not found.
Sitecore.XA.Feature.ErrorHandling.Pipelines.MediaRequestHandler.HandleErrors, Sitecore.XA.Feature....
1
vote
Accepted
Why Sitecore renders url of media item as short id?
Apparently there must be some issues with Sitecore 10.4 and useDisplayName parameter of DefaultMediaUrlBuilderOptions.
Changing useDisplayName to false did the trick - now all the media urls are built ...
1
vote
Bulk download media library in Sitecore Media Library without Encoding file names
I got this Powershell script and found that it also downloads the file names with encoded names. So I have updated the script slightly and it now downloads all the files in your download folder with ...
1
vote
Is there a setting that limits amount of parallel image resizes? When there are multiple images on a page performance is really slow
What I expect is happening is that there are a lot of calls being generated by the page and that is slowing down images.
I am assuming all the images are in the Media Library. You can look at cache ...
1
vote
Accepted
JSS returns 404 for media items in Richtext
The issue is that JSS needs the media library link to start with forward slash:
<a href="/media_library_prefix/~/media/d494d2a8a8554dbf977695dbdd4e94b5.ashx">
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
mediaurls × 24media-library × 13
sxa × 3
sitecore-api × 2
multilingual × 2
urls × 2
jss × 1
experience-editor × 1
security × 1
pipelines × 1
caching × 1
coveo × 1
richtext-editor × 1
link-manager × 1
versions × 1
performance × 1
content-hub × 1
dianoga × 1
field × 1
nextjs × 1
xm-cloud × 1
http × 1