Hello DotCMS community,
I’m currently testing dotCMS in headless mode and using the Angular SDK.
I’ve noticed something I can’t quite figure out regarding page layouts:
-
When I enable a sidebar in the layout through dotCMS, I can see it in the page API url.
-
However, when I fetch the same page using the Angular SDK, the sidebar information doesn’t show up.
Here is the chunk of code fetching the page assets
getPageAsset<T extends DotCMSExtendedPageResponse>( url: string, params: DotCMSPageRequestParams = {} ): Observable<DotCMSComposedPageResponse<T>> { return from( this.client.page.get<T>(url, { ...params }) ).pipe( catchError((error: DotCMSComposedPageResponse<T>) => of(error)) ); }
Is this the expected behavior (a limitation of the SDK), or am I missing something?
Has anyone run into this issue or found a workaround?
Thanks a lot for your help!
