Jump to content

Recommended Posts

Posted

Hi,

Im trying to ad the following in my template but it will only render text but works fine in _main.php but this will output across whole site.

Thanks

$content .= "echo $modules->MarkupSocialShareButtons->render();";

 

Posted

This works fine now on _main.php

<?php if($page->template->name === 'blog-entry'){
        echo $modules->MarkupSocialShareButtons->render(); ;
}

 

  • Like 1
Posted
2 hours ago, buster808 said:
$content .= "echo $modules->MarkupSocialShareButtons->render();";

I have never used that module, but I guess it should be:

$content .= $modules->MarkupSocialShareButtons->render();

 

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...