Tuesday, 14 October 2014

Few Sitecore Tips and Tricks


1) How to allow some characters in your Sitecore instance like parentheses?
For example - you want to allow parantheses in Sitecore item name. How can you achieve that?

Solution:
<setting name="ItemNameValidation" value="^[\w\*\$][\w\s\-\$]*(\(\d{1,}\)){0,1}$"/>

<setting name="ItemNameValidation" value="^[\w\*\$][\w\)\(\s\-\$]*(\(\d{1,}\)){0,1}$" />


2) Are you not able to see Sitecore folder or item is in Content Editor tree? But you are able to see it using Sitecore search.

Solution:
Clearing Content Editor cache by IIS Reset will solve above issue.


3) Why does Sitecore remove "-" from page name?

If you have below setting to replace space with "-" then ask client/user NOT to create page with "-" otherwise "-" will be replaced with " " (space) by Sitecore.

<replace mode="on" find=" " replaceWith="-"/>

Solution:
Don't create page with "-" if above setting is ON.

Have a happy Sitecore Journey!

1 comment:

  1. This comment has been removed by a blog administrator.

    ReplyDelete