How to: Enable the pipe “|” character in Sitefinity page titles.

The pipe character is universally being used as “OR” to separate search terms. However, it may be that you need to enable pipes in your environment. In that case, you will need to follow the steps outlined below, as Sitefinity uses a regular expression to filter out pipes (and other characters) from page titles, as part of its SEO expression filter.

pipes in sitefinity

 

1. Navigate to Administration > Settings > Advanced Settings

2. Navigate the left hand side tree view to Content View > Controls > FrontendPages > Views > FrontendPagesCreate > Sections > SeoSection > Fields > SeoTitle > Validation

3. On the right hand side list of fields, locate the field “Regular Expression”

4. By default, the entry in the “Regular Expression” field is

^[\p{L}\s\-\!\$\(\)\=\@\d_\’\.]+$

You will need to add the “’|” character in the list of accepted characters. To do this, you can simply use the following regular expression

^[\p{L}\s\|\-\!\$\(\)\=\@\d_\’\.]+$

5. Save your changes

6. You will need to do exactly the same in the FrontendPagesEdit subsection of FrontendPages. It’s the very next one after the FrontendPagesCreate that you just changed.

7. If you successfully changed both regular expressions, you should now be able to use the pipe character “|” in your page title.

Official how-to and associated questions on the Sitefinity forum.

MGR: the Intelogist

About MGR: the Intelogist

SharePoint Server developer, turned Sitefinity developer, turned Angular developer, turned SharePoint Online consultant, turned Unily consultant, turned O365 consultant... Never a dull moment!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> 

This site uses Akismet to reduce spam. Learn how your comment data is processed.