Layout and Sidebar not available in angular SDK

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!

Hey Soudin!

Thanks for opening this discussion, this is a limitation that we have to fix, I have created this issue to work on it.

You can keep track of the progress there, I’m not really sure when this is going to be resolved since all our tickets go through a process of planning, but we for sure are going to work on that.

Thanks again for reaching out, hope this helped!

1 Like

Thanks a lot for the quick reply and confirmation,
good to know it’s an known issue.

I’ll stick with the raw API response as a workaround.

1 Like