Main Content

Magnolia Community Forums: Development: Wrapper around each


  • proland
    proland
    Full name: Philipp Roland
    Posts: 14
    Last post: Jul 7, 2017 9:22:33 AM
    Wrapper around each
    #1 by proland on Jul 6, 2017 6:52:40 PM

    I have the following Code within my Area-Template that works as expected:

    <div class="row">
    [@cms.area name="content" /]
    </div>

    What I need now: I just want to "wrap" each Component within the "content"-Area with an additional "div"-Tag. So I've tried to do the following in the Area-Script:

    [#list components as component]
    <div class="myclass">
    [@cms.component content=component /]
    </div>
    [/#list]

    But this gives me an Error "components" is null.

    Any idea what I do wrong?

    Thanks in advance.
    Roland

  • proland
    proland
    Full name: Philipp Roland
    Posts: 14
    Last post: Jul 7, 2017 9:22:33 AM
    Re: Wrapper around each
    #2 by proland on Jul 7, 2017 9:22:33 AM

    Solved! I got a Typo somewhere in my Template-Script, but the error Messages pointed me to a absolute different Position so I waste a cuple of time just to fix something that wasn't the Problem.

You don't have the permission to post on this thread

Sign in

To login on this forum, you can use your Magnolia Forge, Support or Partner account, or, below, your Google, Yahoo! or OpenID account. If you have trouble logging in, or any other sort of issue, please let us know in the Meta forum, on the user-list, or simply by email at forum-admin at magnolia-cms dot com.

* Required

... or sign in with:

  • icon http://{your-openid-url}
  • icon
  • icon https://me.yahoo.com/