I want to set different RTE profile for different Sites in SXA.
Is there a setting OR a other way to achieve this?
Sitecore Stack Exchange is a question and answer site for developers and end users of the Sitecore CMS and multichannel marketing software. It only takes a minute to sign up.Sign up to join this community
Unfortunately there doesn't seem to be a way of doing this. The code that gets the profile doesn't seem to use any pipelines that you could hook into or anything that would allow tokens in that value.
string queryString = WebUtil.GetQueryString("so", Settings.HtmlEditor.DefaultProfile); Assert.IsNotNull((object) queryString, "source"); configurationResult = (EditorConfigurationResult) null; Database database = Context.Database; Assert.IsNotNull((object) database, "database"); Sitecore.Data.Items.Item profile1 = database.GetItem(queryString);
Code above taken from
The only way to change that would be to replace the default RichText Editor form and change the underlying code. Then you could use tokens and something like