2

We want content authors to edit content on the page without having to add the rendering each time on the page level. For this we are thinking of partial design.Our blog partial design needs fields like title,description,image, tags which are on page level and a promo(reusable). These fields are may not be editable on page level once we add to partial design.

How do I change datasource on page level if its shared? How do I make sure the data is pulled from the page level for the rest of the fields?

4
  • How did you place those fields on that partial? Which rendering did you use? – Gatogordo Mar 23 '17 at 15:36
  • For the promo , I used the out of box SXA promo rendering.For the rest of the fields I am planning to have these fields on the page level. Is it possible to create one rendering that pulls these three fields and maps the respective fields. – Purnima Mar 23 '17 at 15:50
  • Planning? So you haven't even tried it yet?? Just asking as I don't see your problem.. and fields on page level won't need a datasource. – Gatogordo Mar 23 '17 at 15:53
  • What about promo? If I were to change datasource on every page? – Purnima Mar 23 '17 at 15:56
2

Is it possible to create one rendering that pulls these three fields and maps the respective fields

It is easier than you think.

There is a rendering called: Page Content. The main goal of this rendering is to display fields from Context item.

Once you add it you can select Rendering Variant (this tells rendering which fields should be displayed)

enter image description here

Of course you can define your own Rendering Variants (/sitecore/content/tenant/site/Presentation/Rendering Variants/Page Content)

enter image description here

Read more:

If you want to test all renderings I recommend you to check XA.Reference. It contains all renderings preconfigured so you can get better feeling how to use each of them.

0

Your fields won't be a problem as that information is not embedded in the rendering - so you should be able to have editable fields within the partial design.

For the promo, I don't think it is possible as you cannot alter the rendering information from the partial design on the page. And a datasource is part of the rendering data.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.