Monday 11 September 2017

Forgot Sitecore Admin Login Password?

There were one scenario where i forgot the admin credential for sitecore login after changing. And it was like headache for me.




So we were trying to figure out how can we fix this issue and revert the changes and found the solution.

And it's not complex. So let's start:

First open the SQL Server and open that sitecore instance core database.

After this run this below Query

"UPDATE [aspnet_Membership] SET Password='qOvF8m8F2IcWMvfOBjJYHmfLABc=' 
WHERE UserId IN (SELECT UserId FROM [aspnet_Users] WHERE UserName = 'sitecore\Admin')"


and it will reset the password with default one means "Admin/b(Username/Password)"

You can also try this if wanna reset the password.

Have a Good Day!!!

Saturday 9 September 2017

Sitecore Custom RTE Profiles

After the understanding of RTE field now it's time to use, Change and then customize with It. Overall playing with RTE in sitecore.


So first thing is there are four types of RTE profiles which are already provided by Sitecore to navigate these RTE Profile will jump to core database at "/sitecore/system/Settings/Html Editor Profiles" and these are:

Rich Text Default
Rich Text Medium
Rich Text Full
Rich Text IDE
Rich Text Mail (newly added)





and by default when we are using RTE field in the template then Rich Text Default is already set as data source on the RTE field.





 And the best thing is we can change the data source with other existing RTE profiles.


Now it's time to create one custom RTE but before creating custom RTE, let's discuss why we need to create custom?

Suppose You want to add more tool to the RTE editor options, or just want to remove some options and you are definitely sure that in future you are not going to use. then we use custom RTE.


And now one question is raised that why we are not going to change into existing RTE profiles then my opinion is, "If we will change to the existing RTE profiles then it may impact to the existing RTE field for other items, and we exactly didn't know at what places exactly existing RTE is getting used".


So instead of taking risk we will just copy the whole RTE and will create newer one and here we will customize.


So let's start

1. will go to /sitecore/system/Settings/Html Editor Profiles

2. now will copy Rich Text Full  Profile (here will prefer to copying the existing RTE with Full functionality Profile, so that will remove which i don't want and will add according to my requirement)

3. now will move back to master database and will give the data source of RTE with new one RTE Profile which we want to use.


Please let me know if you are facing issue while using.