I'm writing a sub-theme of Seven, and I don't want the page title or tabs being displayed in the Header region. But Seven puts them there in such a way that it doesn't seem possible to remove them...
if (isset($variables['content']['header'])) {
if ($variables['title']) {
$title = '<h1 class="page-title">' . $variables['title'] . '</h1>';
$variables['content']['header'] .= $title;
$variables['title'] = NULL;
}
if ($variables['tabs']) {
$tabs = '<div class="tabs">' . $variables['tabs'] . '</div>';
$variables['content']['header'] .= $tabs;
$variables['tabs'] = NULL;
}
}
(Source: https://api.backdropcms.org/api/backdrop/core%21themes%21seven%21templat...)
By appending the title and tabs as strings to the end of the $variables['content']['header']
variable, it makes it impossible to remove using another preprocess function. I thought about maybe recreating the $variables['content']['header']
variable in my preprocess function from scratch less the title and tabs, but it seems to be too late in the chain to be possible either.
Does Seven need to do it this way? Would the alternative be for Seven to override all layout templates and do it in them instead? Would that help here or not?
Recent comments
> What is an LMS lite for me? For us to be helpful, we need more details than "Courses: several lessons (web page, pdf, video, audio, quiz), sequence of lessons." Here is a very lite version of...
Is it possible to create a LMS site ?
OK, I did some more testing and figured this one out. In the paragraphs field setting for each content type you are using them, you can make the following selection for Default Edit Mode. I was in...
How to use 'Paragraphs Editor Preview'
Typically in a basic site, and as far as I know (I may be wrong) Backdrop doesn't store cookies for anonymous users, EXCEPT if you have things that need to persist, for example, if you create a View...
Does Backdrop set any Cookies / session variables for guests?