• IfEmpty error when empty
    Question May 4, 2015
    Hi everyone, I have the following line of code within one of my transformations: <%# IfEmpty(Eval("OfficeFax"),"",(string.Format("{0:Fax: (###) ###-####}", Int64.Parse(Eval("OfficeFax").ToString())))) %> here it is again expanded for easier reading: <%# IfE...

  • Store Direct Path when using Media Selection Control
    Question Dec 17, 2020
    Hi, We're using the Media selection control to allow users to upload images into the pages. Client prefers all the images to be reusable and accessed via the media library. We've set this up and found that when we access the field, it gives the permanent URL (/getmedia/{GUI...

  • RE:Webpart Questions
    Forum Post Oct 7, 2011
    Hi there, As recommended, I used the Kentico Basic Repeater because it allows me to bind the data using tree.SelectNodes method in code behind. However, i still have the same error. Looks like even if I am using the Kentico Repeater control, I still can not use the methods...

  • Image Field Best Practices
    Question Mar 24, 2014
    What (if anything) is considered best practice when creating a document type that uses multiple images? For my example, I have a franchise that can upload 3 different pictures. Should I use FILE > Direct Uploader or Upload File or should I use TEXT > Image Selection or Media S...

  • RE:Dynamic background image based on a document property?
    Forum Post Jun 17, 2013
    I've done this before and simply added a new field/property to the document type and dynamically added it to the transformation based on the value. Take this for example:<div class="callout panel<%# IfEmpty(Eval("BackgroundColor"), "", " " + Eval("BackgroundColor")) %><%# IfE...

  • If Else condition in transformation
    Question Oct 7, 2021
    Hi, Please can someone help me how to re-direct if the "file description" is NOT empty. If file description is empty I want to add below line Below is my full code. <!-- --> Thank you!

  • Weird Attachment Issue
    Question Jun 28, 2016
    I'm on v9 of Kentico. I'm trying to add an image to a file selection field called "UploadedImage". When I try, I get this in the file selection field with no image: /CMSModules/Content/CMSDesk/Edit/593352F4-AF45-48BD-A09F-9EE015BEBE88 Here's my code I'm using to import: ...

  • Direct Media File Uploader control
    Question Feb 1, 2018
    Hello, Has anyone built a direct media file uploader control as a form control? There is a DirectFileUploader control for form controls but not one for media libraries. Thank you,

  • IfEmpty statement - null guid
    Question Jun 27, 2014
    Hi, I have a question. Is it possible to hide field by using IfEmpty statement if I use field Direct uploader? I mean, when I leave empty field, this field has a value - 00000000-0000-0000-0000-000000000000. In this case field will appear with link redirecting to page 404 (CMS...

  • Avatars/User Images in Kentico 12?
    Question Jul 31, 2019
    I need to store a profile image for each user and display it on the front end of a Kentico site. The Avatar feature seems appropriate for this purpose. However, when I get the Avatar url (using `AvatarInfoProvider.GetUserAvatarImageUrl()` ) it returns a relative url that is on...

  •   ... 11 12 13 14 15 16 17 18 19 20 ...