Skip to content
Snippets Groups Projects
Commit edf59ef2 authored by Martin Leblanc's avatar Martin Leblanc Committed by Kevin Paxman
Browse files

ISTWCMS-5880: adding logic to print a second page title only when in layout...

ISTWCMS-5880: adding logic to print a second page title only when in layout builder when editing a node with media(hijacking the title)
parent 6e7fa41e
No related branches found
No related tags found
1 merge request!85ISTWCMS-5880: adding logic for headers/title in contacts
{% if show_title is not defined %}
{% set show_title = TRUE %}
{% endif %}
{%
set classes = [
'block',
'block-' ~ configuration.provider|clean_class,
'block-' ~ plugin_id|clean_class,
]
%}
{#This is to show the title to the user at top of page inside the collapsable area, when doing the updates in layout builder#}
{% if not show_title and in_layout_builder %}
<div{{ attributes.addClass(classes) }}>
{% block page_title_content %}
{{ content }}
{% endblock %}
</div>
{% endif %}
{% if show_title %}
{%
set classes = [
'block',
'block-' ~ configuration.provider|clean_class,
'block-' ~ plugin_id|clean_class,
]
%}
<div{{ attributes.addClass(classes) }}>
{% if admin_label %}
<div class="uw-admin-label">{{ admin_label }}</div>
......@@ -25,40 +32,3 @@
{% endblock %}
</div>
{% endif %}
{# // OHANA // OHANA // OHANA // OHANA
/**
* @file
* Theme override for page title block.
*/
{% set classes = [
'l-block--provider-' ~ configuration.provider|clean_class,
'l-block--id-' ~ plugin_id|clean_class,
] %}
{% set attributes = attributes.addClass(classes) %}
{% embed '@layouts/block/block.twig' with {
'attributes': attributes,
'block_wrapper': true,
'constrain': '',
'title_prefix': title_prefix,
'title_suffix': title_suffix,
'label': label is not empty ? label : false,
'content_wrapper': true
} %}
{% block content %}
{% include '@components/page-title/page-title.twig' with {
'page_title': content['#title']
} %}
{% endblock %}
{% endembed %}
OHANA // OHANA // OHANA // OHANA #}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment