Contents
How does the content workflow work in JSS?
To further facilitate this, JSS includes a content workflow which is automatically applied to all generated templates. This workflow defines Development Mode and Content Mode states to designate the current “ownership” of a content item. Import can overwrite field values and route item layout.
Why is development mode not publishable in JSS?
By default the Development Mode workflow state is not publishable. This means that a JSS site that has its content database set to anything other than master (thus enabling workflow and publishing) will not publish content items that are imported from the JSS app manifest without workflow approval.
How does development mode work in Sitecore JSS?
For route items, this means that any rendering changes or updates to datasource items are also skipped. Note that Development Mode includes an __OnSave command which moves the item into Content Mode. This means that by default, any content changes to an item will force it into Content Mode, to avoid overwrite by subsequent imports.
What is content workflow and developer overwrite section?
See the Content Workflow and Developer Overwrite section for more information about content ownership. The JSS import process is designed to gracefully skip items to which the configured import user does not have write permission.
How to move an item from development mode to content mode?
Note that Development Mode includes an __OnSave command which moves the item into Content Mode. This means that by default, any content changes to an item will force it into Content Mode, to avoid overwrite by subsequent imports. By default the Development Mode workflow state is not publishable.
What to use instead of DataSource in Sitecore?
Use Context Item – Use the context item instead of the datasource item. Item Selector Query – Provide a Sitecore query to customize the serialized items. This will be relative to the datasource and/or context item, depending on the selection above.
What should the rendering contents be in JSON?
By default, when serializing a rendering to JSON, the Layout Service will populate the rendering contents with the fields of the rendering’s datasource item. You may have occasions where you would like to output something else, such as: JSS and the Layout Service provide three options for customizing this output.