Settings - Output filter

The settings in this category allow you to adjust the Output filter, which performs additional changes to the final output code of pages before it is sent to the browser for rendering.

Applying output filters to your website

General

Excluded output form filter URLs

May be used to disable the Form output filter for specific URL paths, which fixes the issue with non‑working postbacks on pages that use URL rewriting. It ensures that forms, dialogs and buttons will work correctly on pages managed by Kentico.

Excluded resolve filter URLs

Allows you to disable the URL resolving output filter, which adjusts relative URLs so that they reflect the root URL of the website.

For example, ~/mypage1/mypage2.aspx would be changed to /mypage1/mypage2.aspx (if the application is running in the root) or /VirtualDirectory/mypage1/mypage2.aspx (when using a virtual directory).

Only URLs inside src and href attributes are changed.

XHTML filter

Excluded XHTML filter URLs

May be used to specify the URL paths of the pages that should be excluded from all functionality provided by the XHTML output filter.

Excluded XHTML attributes filter URLs

Specifies the URL paths of the pages that should be excluded from the Tag attribute XHTML filter, which ensures that all attributes of HTML tags are generated in valid XHTML format.

Excluded XHTML JavaScript filter URLs

Specifies the URL paths of the pages that should be excluded from the JavaScript tag XHTML filter, which ensures that the type and language attributes are included in all <script> tags.

Excluded XHTML lower case filter URLs

Specifies the URL paths of the pages that should be excluded from the Lower case XHTML filter, which ensures that all HTML tags and attributes are generated in lower case.

Excluded XHTML self close filter URLs

Specifies the URL paths of the pages that should be excluded from the Self closing tag XHTML filter, which ensures that all HTML elements without closing tags are properly closed, e.g. <br> will be replaced by <br />.

Excluded HTML 5 filter URLs

Specifies the URL paths of the pages that should be excluded from the HTML5 output filter.

This filter replaces tag attributes that are obsolete in HTML5. Such attributes are removed and the system instead assigns CSS classes named in format <attribute name>_<attribute value>. These classes need to be defined in the CSS stylesheet used by the website’s pages.

The affected attributes are: cellpadding, cellspacing, width, height, border, align, valign

For example:

  • <table cellpadding=“2” cellspacing=“4”>
  • would be replaced by:
  • <table class=“cellpadding_2 cellspacing_4”>

Indent output HTML

Indicates if the HTML output of pages should be processed into a properly indented, easier to read format. This setting is applied to all pages on which the XHTML output filter is enabled.

Convert TABLE tags to DIV tags

Determines which <table> elements (and their child <tr> and <td> tags) should be converted to <div> elements by the output filter. The system automatically assigns CSS classes to the replacement Div tags according to the name of the original tag. The classes need to be defined in the CSS stylesheet used by the website’s pages.

This behavior can either be disabled completely, enabled for all tables except for those marked by the _nodivs CSS class, or only enabled for the tables designated through the _divs class.