A developer wants to create a new component to display content from a datasource. Of the options listed below, what are the optimal steps to do this?
Create or reuse a SXA Module, which is a folder that contains the renderings, data templates, and media items for your components.
Insert a new rendering item in the SXA Module, which defines the metadata and parameters for your component. You can also clone an existing rendering item that uses a data source item and modify it as needed.
Use the JSS CLI to scaffold out a new React component in your Next.js application, which defines the layout, style, and logic for your component. You can also copy and paste an existing React component that uses a data source item and modify it as needed.
Register the React component in the Components builder and add it to the Components library.
In the XM Cloud Pages editor, drag and drop the component to the page and select or create a data source item for the component. You can also edit the data source item's fields in the Properties panel.
A developer needs to create a site for a company and must define the data structures in Sitecore to create items and content. What should the developer use to define the data structures?
The other options are not correct:
Users in XM Cloud Pages want to modify and add specific components at a given point on the page. What would a developer do to allow the users to accomplish this task?
In the Content Editor, create or select a rendering item that defines the metadata and parameters for your component.
In the rendering item, in the Data section, in the Layout field, enter the HTML markup for your component. Include a placeholder tag with a unique name, such as <sc-placeholder key='my-placeholder' />.
In the Content Editor, create or select a placeholder settings item that defines the allowed components for your placeholder. You can also clone an existing placeholder settings item and modify it as needed.
In the placeholder settings item, in the Data section, in the Key field, enter the same name as the placeholder tag, such as my-placeholder.
In the placeholder settings item, in the Data section, in the Allowed Controls field, select the components that you want to allow in the placeholder. You can also use the Edit button to open the Allowed Controls dialog box and select the components from a tree view.
Register the component and the placeholder settings in the Components builder and add them to the Components library.
In the XM Cloud Pages editor, drag and drop the component to the page and use the placeholder to insert other components as needed.
A developer is using the Content Editor to set placeholder restrictions on a placeholder called headless-footer. Because these restrictions have been set on the placeholder settings within /sitecore/Layout/Placeholder Settings, which of the following statements is correct?
The other options are not correct:
A) The restrictions apply for all placeholders called headless-footer within a single site in the XM Cloud Content Management instance. This option is too narrow, as the placeholder restrictions apply to all sites that use the same placeholder key, not just one site.
D) The restrictions only apply for subsequently created versions of a placeholder called headless-footer. This option is incorrect, as the placeholder restrictions apply to all versions of the placeholder, not just the new ones.
If a developer wants to limit the serialization of items under a Navigation item to just the item itself and then one step below, what property should the developer add to the includes to indicate this limitation?
Self -- only the item itself is serialized, not its descendants.
Children -- the item and its immediate children are serialized, not the grandchildren or further descendants.
Subtree -- the item and all its descendants are serialized, regardless of the depth.
includes:
- name: Navigation
path: /sitecore/content/MySite/Navigation
scope: Children
Full Exam Access, Actual Exam Questions, Validated Answers, Anytime Anywhere, No Download Limits, No Practice Limits
Get All 50 Questions & Answers