Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 725

Anything related to media stored in the database or file system and created as items in the Media Library.

5 votes

How do you get the link for a media item?

Use this: Sitecore.Data.Fields.ImageField myImageItem = (Sitecore.Data.Fields.ImageField)Sitecore.Context.Item.Fields["MyImageField"]; then: Sitecore.Resources.Media.MediaManager.GetMediaUrl(myIma …
Sergey Kravchenko's user avatar
6 votes
Accepted

Media Items all return 404

Your problem lays in casting to MediaItem object, you should use ImageField instead. Use this: Sitecore.Data.Fields.ImageField myImageItem = (Sitecore.Data.Fields.ImageField)Sitecore.Context.Item.Fi …
Sergey Kravchenko's user avatar
0 votes

How do I manage Media library file extensions for SEO purposes?

You question is not very specific, though you can control extension logic via main web.config if its Sitecore version is < 8.1 or Sitecore.config if its >= 8.1 You can disable supporting ashx extensi …
Sergey Kravchenko's user avatar