Hi.
Using REST API we create parent pages and then upload children ones. We want to have a children list in our parent pages, but if we add '{children}' macro to their content we see it as is. So, how to properly add macros to pages created using API.
Hello @v-hleb.v !
As I understand, you need to update an already existing page via rest and add a macro to it.
You can take a look at our documentation on how to update pages via REST:
There is also our document on the Children Display Macro itself:
For you to insert the macro, the markup should be sent with the content body. Here is an example of how the markup for the macro looks like from our documents:
{children:reverse=true|sort=creation|style=h4|page=Home|excerpt=none|first=99|depth=2|all=true}
Here in our community, some people had a thread that had the creation of macros via rest as the main objective. You can take a look at it here:
I hope this helps! Let us hear from you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.