Skip to main content

Modules - layout output scoping issue

If you try to output a WebApp within a Module layout, it looks for the WebApp layout in question, within the current modules' folder.

type: 'list' switches it between detail/list successfully, but it's still looking within the current module.

{%- include 'webapp', id: '2', type: 'list', layout: 'courses', perpage: '20', showpagination: 'true', sorttype: 'properties.name', sortorder: 'asc' -%}

within the eCommerce Module Product Layout, outputs the following:

"layouts/modules/module2/courses/list/wrapper". rather than "layouts/webapps/webappX/list/wrapper"

Status: Completed10 comments

Log in to comment and vote

Comments10

  • Martin Sanderson changed status to In Review
    •

    Dec 9, 2019

  • Matt Walter changed status to Completed
    Team•

    Mar 6, 2020

  • Matt Walter changed status to In Progress
    Team•

    Mar 2, 2020

  • Matt Walter changed status to In Progress
    Team•

    Mar 2, 2020

  • Benjamin Porter

    •

    Jan 21, 2020

    Hi Kirk, could I get some more information about the issue in our intercom chat? Thanks.

    • Developer

      •

      Jan 27, 2020

      Benjamin Porter: Sure.

  • Benjamin Porter

    •

    Jan 20, 2020

    So when calling out another WebApp within a WebApp, you have to use type: 'list'.
    You can read about that here: https://siteglide.support/en/articles/3478369-webapp-detail-layouts

    • Developer

      •

      Jan 21, 2020

      Benjamin Porter: The error is gone when type: 'list' is added to the module tag but it's not returning the data.
      Here's the code snippet:
      {%- include 'webapp', id: '2', type: 'list', layout: 'default', per_page: '20', show_pagination: 'true', sort_type: 'properties.name', sort_order: 'asc' -%}

  • Matt Walter changed status to Planned
    Team•

    Dec 27, 2019

  • Urszula Richards

    •

    Dec 10, 2019

    Following