This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

ricardo_zurc
ricardo_zurc

Hi!

I want to call a component inside a component with a variable, like this: http://i.stack.imgur.com/yw31v.png

Here's the code of the default.html->

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
<div class="container">
    <div class="row">
        {% partial __SELF__ ~ "::category" category=__SELF__.category childscategory=__SELF__.childscategory%}
        <div class="col-xs-3">
          <strong>DATA</strong>
          <ul class="list-group text-center">
            {% partial __SELF__ ~ "::dates" files=__SELF__.files  %}
          </ul>
        </div>

        <div class="col-xs-3">
          <strong>Nome do Ficheiro</strong>
          <ul class="list-group text-center">
            {% partial __SELF__ ~ "::files" files=__SELF__.files  %}
          </ul>
        </div>

        <div class="col-xs-3">
          <strong>Descrição</strong>
          <ul class="list-group text-center">
            {% partial __SELF__ ~ "::description" files=__SELF__.files %}
          </ul>
        </div>

        <div class="col-xs-1">
          <strong>{{__SELF__.labelpresentation}}</strong>
          <ul class="list-group text-center">
            {% partial __SELF__ ~ "::download_1" files=__SELF__.files %}
          </ul>
        </div>
          -> I WANT TO CALL IT HERE <-
    </div>
</div>

Last updated

chris10207
chris10207

Did you find a solution ? i would be interested also in this thanks

Sam
Sam

Depends on the relationships you create in your Models.

contato15717
edwardwindtalker18884

1-5 of 5

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.