SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can't make the AssetUrlSelector Dialog to look the same as in examples that I find throughout the internet.

I have simply put a AssetUrlSelector with some parameters just to try it out:

...
AssetUrlSelector assetPicker = new AssetUrlSelector();
assetPicker.ID = "Test_AssetPicker";
assetPicker.AssetPickerButtonVisible = true;
assetPicker.AllowExternalUrls = true;
assetPicker.IsUrlRequired = false;
assetPicker.PickerButtonText = "...";
assetPicker.UseImageAssetPicker = true;
assetPicker.DisplayLookInSection = true;
assetPicker.DefaultToLastUsedLocation = true;
assetPicker.DefaultOpenLocationUrl = "/PublishingImages/";
Controls.Add(assetPicker);
...

And I have tried toggling most properties to different values, especially "UseImageAssetPicker" and "DisplayLookInSection". No matter what I set them to, the dialog still looks the same.

Screenshot of the dialog Especially what I am missing is the actionbar, the one above the main-area that has the actions, so that I can upload new files while using the assetselectordialog.

share|improve this question

I have used this in ascx for a webpart and it is showing Upload button at top for me.

<CMS:AssetUrlSelector CssClass="MM_bbc-button"
                          ID="assetSelectedTemplate"                        
                          UseImageAssetPicker="false"
                          PickerButtonText="Select Letter Template"                          
                          MaxLength="512"
                          DecodeUrlPath="false"
                          AccessibilityName="<%$Resources:cms, asseteditimage_selectedimage_label%>"
                          runat="server"
                          AllowExternalUrls="false"
                          ValidateUrl="true"

                          AssetUrlTextBoxVisible="false"                          
                          OverrideDialogTitle="Choose MailMerge Template" 
                          OverrideDialogDescription="Select a Template"
                          ClientCallback="function(returnedUrl) {  assetLinkSelected(returnedUrl); }"               />

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.