Skip to content

[AdminUi] Add a full layout - #304

Open
loic425 wants to merge 1 commit into
Sylius:mainfrom
loic425:feat/full-layout
Open

[AdminUi] Add a full layout#304
loic425 wants to merge 1 commit into
Sylius:mainfrom
loic425:feat/full-layout

Conversation

@loic425

@loic425loic425 commented Oct 24, 2025

Copy link
Copy Markdown
Member

Extending a full layout

{% extends'@SyliusAdminUi/layout/full_layout.html.twig' %}
{% blockmain %}
<divclass="page-wrapper">
<divclass="page-body">
<divclass="container-xl">
<divclass="row">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur ac felis nec sapien interdum luctus. Integer non sapien in urna faucibus pharetra. Vivamus vitae justo at arcu gravida aliquam. Sed congue eros id dolor faucibus, in iaculis arcu lacinia.</p>
<h3>Section</h3>
<p>Phasellus euismod, justo in facilisis lacinia, massa arcu convallis libero, sed consequat dolor nisl sit amet libero. Aenean euismod sem vel turpis ultrices, vitae laoreet leo sodales.</p>
</div>
</div>
</div>
</div>
{% endblock %}
image

and even using custom hooks

{% extends'@SyliusAdminUi/layout/full.html.twig' %}
{% setprefixes= ['app.cms_page'] %}
returnstaticfunction (ContainerConfigurator$container): void {
$container->extension('sylius_twig_hooks', [
'hooks' => [
'app.cms_page#navbar' => [
'content' => [
'enabled' => false,
],
],
'app.cms_page#content' => [
'body' => [
'template' => 'cms/page/with_hooks/body.html.twig',
],
],
],
]);
};
image

@loic425loic425 changed the title [Ui] Add a full layout[AdminUi] Add a full layoutOct 24, 2025
@stlgaits

Copy link
Copy Markdown
Contributor

I'm just wondering about 2 small nitpicks about naming :

  • is it really accurate to call it "CMS" pages here ? as we don't really have a whole CMS behind, they are simple 'standard' pages in my opinion
  • shouldn't the twig template be called "full_layout.html.twig" or "layout.html.twig" instead of just "full" ?

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@loic425@stlgaits