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

Output Filter

4 posts, 0 answered
  1. Steve .
    Steve . avatar
    14 posts
    Registered:
    14 Apr 2010
    14 Apr 2010
    Link to this post
    Hi there,

    Quick question - is it possible to catch the full content that's sent to the browser after Sitefinity has finished with it, but before it's sent? i.e. a plugin that could make changes to the packets prior to sending.

    Thanks,

    Steve
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    14 Apr 2010
    Link to this post
    Hello Steve .,

    Thank you for using our services.

    Please take a look at the following MSDN Library article: ASP.NET Page Life Cycle Overview. Each ASP.NET page or control has this life cycle. You can subscribe to the PreRender event execution and do your logic. A sample of this can be found in this KB article: How to wrap a Generic Content control in 3.6 SP1.

    All the best,
    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.
  3. Steve .
    Steve . avatar
    14 posts
    Registered:
    14 Apr 2010
    16 Apr 2010
    Link to this post
    Thanks for getting back to me Radoslav - I'll dive in and take a look at your suggestions.

    It may help to outline what I'm looking to achieve; I'm looking to remove the need to have a pagename for the homepage URL - I'd rather it just be blank.

    Whilst clearly I can do a rewrite for inbound requests I'm looking for a way to move the reference to the pagename in output URLs also i.e. rewrite them before the HTTP packets are sent.

    I realise that there are probably other ways to achieve this, but I'm looking for an approach that is as unobtrusive as possible (I don't want to have to overwrite internal Sitefinity methods).

    What impact would such an output filter have on the backend operation of Sitefinity?

    Thanks

    Steve
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    16 Apr 2010
    Link to this post
    Hi Steve .,

    You can create a class which inherits from InternalPage and then override the methods there. I have attached a sample where you change the output of the page title, without messing up the original data. Then you have to substitute the InternalPage we originally use with your custom one. Go to ~/Sitefinity/cmsentrypoint.aspx and modify the file like this:
    <%@ Page Inherits="Telerik.Samples.PageTittle" MasterPageFile="~/Sitefinity/Dummy.master" %>

    This will not affect the back-end as it will be relevant only to the public part of your website.

    Regards,
    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
4 posts, 0 answered