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

Forums / General Discussions / Sitefinity & Accessibility

Sitefinity & Accessibility

4 posts, 1 answered
  1. Richard
    Richard avatar
    63 posts
    Registered:
    20 Jan 2010
    29 Jul 2010
    Link to this post
    Hi,

    We have a requirement from one of our clients for a new government website which has to have certain accessibility features.

    The website will have multiple master pages and themes for different area's of the website so they can change the layout and colours where appropriate.

    One of the accessibility features they would like is an option to change the contrast of the website for people with visual impairments so it displays yellow text on a black background for example.

    I have a couple of links to sites that has this feature, http://www.richmondshire.gov.uk/your-council/website-help/high-contrast.aspx, http://www.liverpool.gov.uk/index.asp and http://www.cnib.ca/en/site-accessibility/change-contrast/Default.aspx and was wondering if it is possible to do something similar within Sitefinity and if it is what is the best way of setting it up.

    Many thanks
    Richard
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    29 Jul 2010
    Link to this post
    Hi Richard Turner,

    Changing the contrast could be done with changing the theme at runtime. You can implement this functionality in Sitefinity. You can use QueryStrings and RadComboBox control to append a QueryString from the client side using SelectedIndexChanged event of the RadComboBox control. Then inside InternlaPage class there is a method GetTheme which you can override, read the QueryString value and set the theme

    sample

    protected override string GetTheme(Telerik.Cms.IPageContent pageContent)
     {
         string newTheme = this.Context.Request.QueryString["theme"];
         if (!String.IsNullOrEmpty(newTheme))
         {
             return newTheme;
         }
         return base.GetTheme(pageContent);
     }


    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
    Answered
  3. Richard
    Richard avatar
    63 posts
    Registered:
    20 Jan 2010
    29 Jul 2010
    Link to this post
    Thanks thats great.
  4. Gaurav
    Gaurav avatar
    6 posts
    Registered:
    25 Jun 2012
    23 Aug 2012
    Link to this post
    How this is done in sitefinity 5.0 ?

    There is no InternalPage class, there is one Telerik.Sitefinity.Web.IIS6.DefaultAspxPage class but overriding its following function does not do any thing
    public class BasePage : Telerik.Sitefinity.Web.IIS6.DefaultAspxPage
        {
            protected override void OnPreInit(EventArgs e)
            {
                base.OnPreInit(e);
                this.Theme = "NoTheme";
            }
    }

    also changed the /Sitefinity/default.aspx inherits attribute as follows
    <%@ Page Inherits="SitefinityWebApp.BasePage" AutoEventWireup="true" %>

    Nothing happens.
    Any help would be much appreciated

    Thanks
    Gaurav
Register for webinar
4 posts, 1 answered