More in this section

Forums / Developing with Sitefinity / Automatic Previews of Page Content

Automatic Previews of Page Content

7 posts, 0 answered
  1. jkregala
    jkregala avatar
    159 posts
    Registered:
    22 Sep 2009
    18 May 2010
    Link to this post
    Allow me to reiterate how lovely this CMS is! The purchasing of Sitefinity for our team is already underway and presently we are exploring its capabilities. (Which is why I think you will be seeing more of me here in the future.)

    Allow me to explain this scenario. For example my site's main pages include Home, Promos and Products. Both Promos and Products would be containing sub-pages so naturally each would have a landing page that contains introductory content in the form of image and/or text. I wanted to insert some sort of "windows" in the Home page that would automatically reflect the initial portion of whatever is in the said introductory content from the two pages so that the visitors of the site would be able to get a "teaser" of some sort as to what is generally contained in the rest of the site.

    What would be a good way to "attack" this approach? Thanks :)
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    18 May 2010
    Link to this post
    Hello jkregala,

    You could use RadWindow control and on click open the window on the client using window.radopen()  method. You could use some html element that supports onmouseover and open the RadWindow using the same method.

    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.
  3. jkregala
    jkregala avatar
    159 posts
    Registered:
    22 Sep 2009
    18 May 2010
    Link to this post
    Hi, I don't see any RadWindow control listed under RadControls section. I only have RadTabStrip, RadMenu and RadPanelBar.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    18 May 2010
    Link to this post
    Hello jkregala,

    Please take a look at RadWindow for ASP.NET AJAX. The control is embedded into Telerik.Web.UI.dll. Alsi in th eway that you would use it you will need some custom control that will open the page. The control designer in Sitefinity expose just the public properties of a given control.

    Greetings,
    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.
  5. jkregala
    jkregala avatar
    159 posts
    Registered:
    22 Sep 2009
    18 May 2010
    Link to this post
    Oops I think I might not have been able to imply successfully what I was trying to say before after checking RadWindow for ASP.Net AJAX. When I said "window" in my first post I did not actually mean actual "windows" that mirrors exactly what would be shown on a page, maybe I shouldn't have used that term. Kindly see attached file so that what I'm trying to imply would be better understood.

    Thanks! :)
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    18 May 2010
    Link to this post
    Hi jkregala,

    You could create a custom control with a repeater. Create a public property with WebUIType Editor from where you could select which pages you want to show. In each ItemTemplate of the Repeater get some content of the page and show it. Then get the HTML of these pages

    protected void Page_Load(object sender, EventArgs e)
    {
     
        reques t= WebRequest.Create("PATH TO YOUR PAGE");
        response = mywebReq.GetResponse();
        sr = new StreamReader(response.GetResponseStream());
        strHTML = sr.ReadToEnd();
        sw = File.CreateText(Server.MapPath("~/TempFile.html"));
        sw.WriteLine(strHTML);
        sw.Close();
     }
     
        WebRequest request;
        WebResponse response;
        StreamReader sr ;
        string strHTML ;
        StreamWriter sw;


    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.
  7. jkregala
    jkregala avatar
    159 posts
    Registered:
    22 Sep 2009
    19 May 2010
    Link to this post
    Sir is that the only possible way?
Register for webinar
7 posts, 0 answered