Wednesday, 6 September 2017

Why and when to use Rich Text Editor in Sitecore?

Was thinking about RTE in Sitecore and below are my Investigation. Let me explain

Why we are using Rich Text Editor (RTE) data-type while development ?
And when to use RTE ?

Advantage of using RTE:

RTE provides advanced editing functionalities
              tools for editing like font-style, inserting sitecore link, media link, symbols and also settings like find and replace.


Like we are using Microsoft word in sitecore for RTE field
              it's like we are inserting content in Microsoft word office, we can edit font-style, inserting symbols, insert links.


We can directly apply class definition by selecting from drop-down on selected text in RTE field
              we can add our own custom class to the drop list, So that content author can apply the class to the content at the time of creation can apply class directly without help of  designer/developer.


Have different types of RTE Profiles
              we have four different types of RTE Profiles, which we can give as data-source to the field as per requirement:

  • Rich Text Default
  • Rich Text Full
  • Rich Text IDE
  • Rich Text Medium

When to use RTE data type
             When feels that content may contains links(internal or external), images or symbols then it will be good to use RTE.
And if content contains more than one line of content which contains only text or external links then instead of using RTE should use Multiline text data type.


we can also add our own custom RTE Profile as per our requirements. and on this will discuss later



Tuesday, 5 September 2017

Publishing option on menu

While development with sitecore, each time after the work on the item we need to go to the publish ribbon and do the publish stuff. So was thinking that it will be great, "If on the right click of the item we get the publishing option."

And yes, successfully achieve the desired requirement. Believe me it was really interesting and required small changes that's it.


Let me explain steps that will take around 10 minutes to achieve this functionally.

1. Login on the sitecore instance and jump to core database.

2. Go to the Tree up to /sitecore/content/Applications/Content Editor/Context Menues/Default 

3. Create one item of type /sitecore/templates/System/Menus/Menu item  with name ItemPublish.

4. Give the message field value as item:publish(id=$Target) and that's it.






5. Save the item and come back to master database. And now it's time to test.



custom-sitecore-publish-button


Also uploaded one package on marketplace can check by clicking here.

Thanks for your valuable time.