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

Forums / Developing with Sitefinity / Extending of NewsItemsList

Extending of NewsItemsList

5 posts, 0 answered
  1. Petr
    Petr avatar
    34 posts
    Registered:
    03 Jan 2011
    21 Feb 2011
    Link to this post
    Hi,

    it there any way how to extend functionality (filters) of NewsItemsList.ascx component? I need to fitler by Language, Status or Author.

    Thanks for your practical tips

    Petr
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    21 Feb 2011
    Link to this post
    Hello Petr,

    You can easily filter by Author, but if the field you want to filter is not a metakey (Status, Language) you need a custom client binder
    If you do not want to create client binder you can make metakey - property mappings. You might find this post useful.

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. Petr
    Petr avatar
    34 posts
    Registered:
    03 Jan 2011
    21 Feb 2011
    Link to this post
    Ivan,

    thanks. I've tried to use metakey, but  don't know, how to map e.g. Language to some metakey?
    Have you got any sample of code?

    Thanks

    Petr
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    21 Feb 2011
    Link to this post
    Hello Petr,

    The IContent has a read only property - Languages which returns generic list of strings. You can get each item from the list and save it as a metakey of type ShortText or LongText.

    Regards,
    Ivan Dimitrov
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  5. Petr
    Petr avatar
    34 posts
    Registered:
    03 Jan 2011
    21 Feb 2011
    Link to this post
    Ivan

    thanks. Can I find somewhere sample of code which will show me how to map this property to metakey?

    Thanks

    Petr
Register for webinar
5 posts, 0 answered