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

Charis
Charis

In theme layout i use:

{% for section in sections %}
        {% partial 'blocks/' ~ section._group data=section %}
{% endfor %}

to render partials inside blocks folder depending on user selection. Everything worked properly until I install Rainlab translate plugin. After installation i get: An exception has been thrown during the rendering of a template ("The partial 'blocks/' is not found."). Is this a bug or i missing something?

Charis
Charis

After some searching i found that the problem was not in partial rendering but in variable used in layout. It seems that after installing Rainlab translate plugin variable with groups is not working any more. For example:

    <!-- Repeater -->
    {repeater name="items" groups="themes/mytheme/fields.yaml" tab="Items"}
        {variable name="varname" type="text"}{/variable}
    {/repeater}

is not produce anymore groups items[0][_group] = "fieldname" on static-pages content

Last updated

Charis
Charis

I managed to solve the problem. The problem was that you need to create one more language with translate plugin. You need at least 2. If you install plugin and leave only one language, system doesn't create "groups" on static-pages.

1-3 of 3

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