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

Forums / Developing with Sitefinity / Single Item Generic Content View

Single Item Generic Content View

14 posts, 0 answered
  1. Siddesh Kapadi
    Siddesh Kapadi avatar
    239 posts
    Registered:
    09 Oct 2009
    22 Jul 2010
    Link to this post
    Hello Team Telerik,

    I need to display the single content in a generic content View. 
    This control needs to have:
    The Title
    Summary of the Content (restricted to few words)
    Link to the page i need the user to redirect(Would be from the site)
    Text as  coverup for the link.


    Please let me know how can I achieve this.


    Regards,
    Siddesh Kapadi
  2. Siddesh Kapadi
    Siddesh Kapadi avatar
    239 posts
    Registered:
    09 Oct 2009
    22 Jul 2010
    Link to this post
    Hey,

    Can I use any template for this
  3. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    22 Jul 2010
    Link to this post
    Hello Siddesh Kapadi,

    ContentView control has a property SelectedItemId that you can use to show a single content. The property is under obsolete members, but there is no problem to use it.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  4. Siddesh Kapadi
    Siddesh Kapadi avatar
    239 posts
    Registered:
    09 Oct 2009
    22 Jul 2010
    Link to this post
    Hey,
    Thanks for your replay.
    Using SelectedItemId would certainly give me the content but how can I now link the control to the diffrent page where i have the read more link....


    Thanks and Regards,
    Siddesh Kapadi
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    22 Jul 2010
    Link to this post
    Hi Siddesh Kapadi,

    Then you can use FitlerExpression property of the control and filter the entire list. By doing so you will have a single item in master mode that you will be able to open in details.

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Siddesh Kapadi
    Siddesh Kapadi avatar
    239 posts
    Registered:
    09 Oct 2009
    26 Jul 2010
    Link to this post
    Hey,
    I have filtered the content by SelectedItemId. Can I have a ButtonSelector for selecting the Generic Content?
    Also, once I filter the Cotnent, the title becomes static and not clickable. How can I avoid this?
    I need to show the summary rather than the complete text. How can I achieve this?

    Waiting for your response.


    Regards,
    Siddesh Kapadi
  7. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    26 Jul 2010
    Link to this post
    Hello Siddesh Kapadi,

    To select GenericContent you have to create a custom selector - CustomWebUITypeEditor. The title is not rendered as link if you are in design mode. You should see the list in master mode where the list is just reduced and the title is shown as a link. You can observe the HTML of the control to see whether NavigateUrl or Href are generated. To show the summary you can use SummarySettings property that is inside Filters section.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  8. Siddesh Kapadi
    Siddesh Kapadi avatar
    239 posts
    Registered:
    09 Oct 2009
    26 Jul 2010
    Link to this post
    Hello Ivan,
    The custom selector has been added to the property SelectedItemId. The link is available in the design mode, but it is not clickable. The link disappers once the user sets the selectedItemId. Also, once the user selects the SelectedItemId the SummarySettings doesnot take the effect. Please let me know how can I implement this.

    Regards,
    Siddesh Kapadi
  9. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    26 Jul 2010
    Link to this post
    Hi Siddesh Kapadi,

    When you use SelectedItemId the item is opened in Details mode, not in master and you  see the full content. You have to use FilterExpression property if you want to have master and details mode or create a custom control that will cover your needs.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  10. Siddesh Kapadi
    Siddesh Kapadi avatar
    239 posts
    Registered:
    09 Oct 2009
    26 Jul 2010
    Link to this post
    Hey Ivan,
    Rest seems to be fine, only issue would be how do I restrict the summary based on word count.

    Regards,
    Siddesh Kapadi
  11. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    26 Jul 2010
    Link to this post
    Hello Siddesh Kapadi,

    I think that we have already discussed that you have to set SummarySettings property. The syntax is mode; count;clear;tags;. For instance Words;1; False;


    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  12. Siddesh Kapadi
    Siddesh Kapadi avatar
    239 posts
    Registered:
    09 Oct 2009
    26 Jul 2010
    Link to this post
    Hey,
    But SummarySettings will not take effect if i have SelectedItemId set. So even if I have to restrict the word count how can I proceed further. 

    Thanks for all your help till now and looking forward to more as well.

    Regards,
    Siddesh Kapadi
  13. Siddesh Kapadi
    Siddesh Kapadi avatar
    239 posts
    Registered:
    09 Oct 2009
    30 Jul 2010
    Link to this post
    Hey,
    I think this is still an open issue. Can anyone comment on this.


    Regards,
    Siddesh Kapadi
  14. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    30 Jul 2010
    Link to this post
    Hi Siddesh Kapadi,

    Bellow is how you set summary settings:
    SummarySettings summarSettings = new SummarySettings(SummarySettings.SummaryMode.Paragraphs,2,false);
    //if this is your news view then assing summarySettings like this
    this.SummarySettings = summarySettings


    Sincerely yours,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
14 posts, 0 answered