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

Forums / General Discussions / events module

events module

7 posts, 0 answered
  1. CMSGuru
    CMSGuru avatar
    42 posts
    Registered:
    15 Feb 2011
    11 Apr 2011
    Link to this post
    I added some new metadata fields to the events module and they are viewable and changable on the admin side,now I want those new metadata fields to be seen on a custom Event Viewer page. I'm looking at modifing the ContentViewSingleItemView.ascx usercontrol, so how can I pull out my new custom metafields on that control that I added on the backend?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    11 Apr 2011
    Link to this post
    Hi NewToCMS,

    You should add a control that implements ITextControl interface and this control should have the same ID as the name metakey you registered.

    All the best,
    Ivan Dimitrov
    the Telerik team

  3. CMSGuru
    CMSGuru avatar
    42 posts
    Registered:
    15 Feb 2011
    11 Apr 2011
    Link to this post
    I did that and its not working,

    do you have an example to I can make sure I'm calling it correctly?
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    11 Apr 2011
    Link to this post
    Hi NewToCMS,

    Please check our user manual, Custom Fields section. There should not be a problem if the metakey name and the control ID is the same and the control implements the required interface.

    Regards,
    Ivan Dimitrov
    the Telerik team

  5. CMSGuru
    CMSGuru avatar
    42 posts
    Registered:
    15 Feb 2011
    11 Apr 2011
    Link to this post
    I was able to get it working but if I want to show my field as a link using the <a href> tag it fails, one of my new fields is a link so how can I get my link working, also is there a way to not show empty fields? Example, not all things will have a city, state, etc and if they are blank I don't want to see them on my details page
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    11 Apr 2011
    Link to this post
    Hi,

    You can use Literal wrapped in HyperLink. You can check for empty values using a custom control that inherits from EventsView. You have to override SetItemMetaData where you have access to the content item object.

    Regards,
    Ivan Dimitrov
    the Telerik team

  7. CMSGuru
    CMSGuru avatar
    42 posts
    Registered:
    15 Feb 2011
    11 Apr 2011
    Link to this post
    i did that and it gave me an error
Register for webinar
7 posts, 0 answered