+1-888-365-2779
Try Now
More in this section

Forums / Designing & Styling / Custom Fields display

Custom Fields display

5 posts, 1 answered
  1. Amanda Shafer
    Amanda Shafer avatar
    198 posts
    Registered:
    12 Oct 2012
    27 Jun 2011
    Link to this post
    Hi,
    Looking for a solution to the following.   on my events widget, I want a custom field to appear as such when there is a value..

    Cost: $45

    Essentially the mark up would be, <li><strong>Cost:</strong>$45</li>

    I don't want it to display anything when the field is left blank.

    Please help!
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    28 Jun 2011
    Link to this post
    Hello Amanda,

    You can create a custom FieldControl and check if there is not value set, hide all controls from the template by setting Visible =False or using client component to do this. In this thread I shows how to create a custom field control.

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Amanda Shafer
    Amanda Shafer avatar
    198 posts
    Registered:
    12 Oct 2012
    28 Jun 2011
    Link to this post
    Hi Ivan,
    Thank you very much for providing this solution. At this point, this would require a large time investment that wouldn't be worth it for us. I may look into trying to implement this in the future.

    It would be nice if we could use our custom fields with sf:FieldListView in templates just like the (for example with events) Title, Event dates, location, street, etc. work. This way those who are not as adept at programming could have an easy way to add custom items with precise formatting to their templates. Could you add this to the list of suggested improvements (if its possible) to the Sitefinity team?

    Thank you again.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    29 Jun 2011
    Link to this post
    Hello Amanda,

    There are several requests like this behavior, so I created a PITS for it.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Answered
  5. Amanda Shafer
    Amanda Shafer avatar
    198 posts
    Registered:
    12 Oct 2012
    29 Jun 2011
    Link to this post
    Thank you, Ivan. It is much appreciated!
5 posts, 1 answered