More in this section

Forums / Developing with Sitefinity / View full content from ContentViewItemList.ascx

View full content from ContentViewItemList.ascx

4 posts, 0 answered
  1. Jeremy
    Jeremy avatar
    37 posts
    Registered:
    18 Jan 2011
    25 Nov 2008
    Link to this post
    I'm developing a module based off of the Products module. When the list of items are displayed from the ContentViewItemList.ascx, only so many characters are displayed and then they're cut off with ... It seems as though the Filters>SummarySettings is where I would change this behavior, however, when I change any part of "Sentences; 30; False", it does not retain my changes after saving. Is this where I change this behavior? Is it possibly broke?

    I'm using this version of the Products module.  http://blogs.sitefinity.com/Ivan/Downloads/products_module_with_workflow.zip

    Thanks,

    Jeremy
  2. Pepi
    Pepi avatar
    981 posts
    Registered:
    31 Jan 2017
    26 Nov 2008
    Link to this post
    Hi Jeremy,

    Here is the implementation of the SummarySettings property in ProductsView class:

    public override Telerik.Cms.Engine.SummarySettings SummarySettings 
            { 
                get 
                { 
                   return new SummarySettings(Telerik.Cms.Engine.SummarySettings.SummaryMode.Sentences, 30, false); 
                } 
                set 
                { 
                    base.SummarySettings = value; 
                } 
            } 

    This means that in Master mode ProductsView public control will always display the first 30 sentences of the content. To change this, you could modify SummarySettings property like this:

    public override Telerik.Cms.Engine.SummarySettings SummarySettings 
            { 
                get 
                { 
                    return base.SummarySettings; 
                } 
                set 
                { 
                    base.SummarySettings = value; 
                } 
            } 

    Then set SummarySettings to None in order to display the full content.

    Do let us know if you need any further assistance.

    Greetings,
    Pepi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Jeremy
    Jeremy avatar
    37 posts
    Registered:
    18 Jan 2011
    26 Nov 2008
    Link to this post
    Thanks for clearing that up. That seems like a bug to me. Maybe that should be changed in the Products Module package so other people working off of it don't run into the same issue.

    Thanks again,

    Jeremy
  4. Pepi
    Pepi avatar
    981 posts
    Registered:
    31 Jan 2017
    27 Nov 2008
    Link to this post
    Hi Jeremy,

    As you know Products module is a sample module. Its purpose is to provide some basic instructions on how to create Generic Content based modules and how to override the default implementation of the properties and methods (this is the case with SummarySettings property). But you have access to the code and you could debug and change it according to your requirements. Anyway, we will definitely consider your suggestion to modify SummarySettings property.

    Sincerely yours,
    Pepi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
4 posts, 0 answered