Call sliders in template directly

stardothosting's picture
stardothosting
Mon, 01/02/2017 - 17:10
#1
Call sliders in template directly

What would be the best way to inject the slider into your theme template php file directly? Is there a simple function I could execute to accomplish this? I didn't see any references in the documentation.

Thanks!

cindy's picture
cindy
Tue, 01/03/2017 - 02:31

Each slider is a block. You can follow this topic https://www.drupal.org/node/26502

$block = module_invoke('md_slider', 'block_view', 'slider_machine_name');
print render($block['content']);

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.