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 currently look after 97 Backdrop sites... 37 Drupal sites that need migrating... 17 WordPress sites... 23 tiny HTML sites (holding pages/simple intros) a few Wix and Squarespace sites...
Happy Birthday Backdrop CMS - Share your projects!
Having built around 25 websites in Drupal 7, I have been delighted with the process of upgrading them to Backdrop CMS over the past couple of years. Most notable are the following...
Happy Birthday Backdrop CMS - Share your projects!
Thanks (again)!
Webform - how to remove user name & date at top
That worked well and saved me a lot of hassle trying to reformat the view and css! Brilliant!! I hadn't thought of adding a tooltip... makes so much more sense once its pointed out. Neat...
How to reset the Image Library and display full filenames
Webforms are actually a new content type created by the Webform module. On the Admin Bar go to Structure > Content types > Webform > Configure Then select the Display...
Webform - how to remove user name & date at top