I would like to print out the messages block on a page--front.tpl.php template file. The problem is that I do not use the $page variable to print the page content, responsible to print also the messages block, as I have an entirely different design for the front page. I'm trying this with no luck:
<?php $block = module_invoke('system', 'block_view', 'messages'); print render($block['content']); ?>
Any ideas? Thanks!
Recent comments
I‘ve recently tested DataTables and like it very much.
Views responsive tables
Maybe also worth exploring: https://github.com/backdrop-contrib/tabled https://github.com/backdrop-contrib/datatables
Views responsive tables
Sorry, but I have not had the chance to try the vhost fix yet. I'll post back after I do.
Question re RewriteBase and running in a sub-directory
The official guidance for that would be to put the preprocessing in template.php within your_theme_preprocess_node() and put the logic there to add to or change the variables, but you can do in...
Display modes and templating
Perfect. So if I work with the .tpl files for e.g. all nodes of type “books”, I can easily do something like this via PHP (nobody needs twig anyway): If field 'user' = ‘yorkshirepudding’, then...
Display modes and templating