More in this section

Forums / Developing with Sitefinity / Question about best practise approach:

Question about best practise approach:

2 posts, 0 answered
  1. Keith
    Keith avatar
    5 posts
    Registered:
    28 Jun 2008
    01 Dec 2008
    Link to this post
    We need to add onto an existing Sitefinity website. We need a system developed whereby a user can add a new page to a Sitefinity site using the CMS interface, save it in a specific location (within the CMS system), and using presumably a custom module, or customized Sitefinity process to be able to read from that save location folder all of the names of the files saved, their date stamp, and then present the list in three different formats on other pages as required. The Three formats are:

    Random summary list of 5, containing the title, a thumbnail, the first 'x' words. Each item in the list would link to the main story display section of the site to display the full article.

    Ordered summary list of 5 (as above) but sorted by date, configurable, (old to new or new to old)

    Page list summary (link page showing 20 summaries, with thumbnail, pageable). This would be a separate full page instead of a sidebar module, and links would go to, or load in a pop up the detail view of the article content.

    This project may be accomplished using/extending built in controls (like the news module) or by custom coding of a module, or a combination of both.

    My question is really about determining the best, and simplest approach: should we modify the news component, and have posts be stored as news, should we just develop a completely custom module(s)? I have the feeling like this project could be accomplished with fairly simple customization within the framework of SF itself with minimal if any programming, but I am most interested in hearing back from the community about on the ground experience and approaches for this type of scenario.

    Thanks in advance,

    Keith Waldron
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    03 Dec 2008
    Link to this post
    Hi Keith,

    While waiting for someone from the community to share his/her experience, I will write my thoughts here:

    We need to add onto an existing Sitefinity website. We need a system developed whereby a user can add a new page to a Sitefinity site using the CMS interface, save it in a specific location (within the CMS system)


    Please note that the pages are stored in a database, and not in physical files on the file system. You can add physical pages as External Pages, but these should be created out site the CMS and just linked to the Sitemap.

    The rest of the things you described seemed to be achievable with creating of only one custom user control, which is using our APIs to get the content and present it in 3 different ways. The NewsView control is not supporting this our of the box, so you should only use the News APIs to create a new user control.
    There are several overloads of the GetContent() method which allows you to get your items in various ways, with different sorting expressions.

    I hope this helps you.

    Greetings,
    Georgi
    the Telerik team

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