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

t.filteau30364
t.filteau30364

Ok, so I have multiple pages that share the same header, but with a different text. So I went ahead and defined a partial that I called sectionHeader. Here's the code:

<div class="component">
    <div class="header-content-pane">
        <div class="left-panel">
            {{ titre }}
        </div>
    </div>
</div>

And from my layouts, I'm calling the partial with this line:

{% partial "compagnieHeader.htm" titre="LA COMPAGNIE" %} 

Now, this works perfectly, but I'd like the user to be able to define the text (LA COMPAGNIE in the example above) via the static page interface in the admin section of the CMS. However, the only way to do that is to have a tab and for that, I need a placeholder. However, I can't do:

{% partial "compagnieHeader.htm" titre="{% placeholder whatever title="whatever" %}" %} 

And if I put the placeholder inside the partial like below, the static page plugin doesn't pick it up and as such, it doesn't show me the tab in the admin interface.

<div class="component">
    <div class="header-content-pane">
        <div class="left-panel">
            {% placeholder whatever title="whatever" %}
        </div>
    </div>
</div>

Is there a way to get a tab in the admin section so the user can define the title appearing in my header?

1-1 of 1

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