Acces data in partials

How to acces data from page in partials? Is there any way to do that?

I am not sure that I understand your question. Normally, partials are pulled into the document to then become part of the document. This means that a data source that has been specified in the main document, will also be available to the partial.

If that is not the answer that you are looking for, please give a better description of what you want to do.

1 Like

I have a layout page, index page and partial. Where i need to request data to access it in partial? I can’t make api call in partial because i need that information in other partials.

Create the partial as part of the index (or content) page so that it works within that page. Then create the partial by clicking the Move To Partial button

image

In the dialog that opens, enter the name of the partial (no extension) and save

And you are done to reuse the partial wherever required.