Sharethis

tevfiksirin's picture
tevfiksirin
Wed, 10/01/2014 - 09:24
#1
Sharethis

Hi, I want to add sharethis for portfolio page, 

I installed the module, but can not show on the block...

How can I achieve this

" views-view-fields--portfolio.tpl.php"  

I tried adding it to the page but it did not work, I would be glad if you can help ...

< code>

  • <div class="box grid-6 mix mix_all <?php foreach($row->field_field_portfolio_taxonomy as $key => $value): print $value['raw']['tid'].' ';endforeach;?>">
  •     <div class="video-grid video-views">
  •         <?php print $fields['field_portfolio_multimedia']->content;?>
  •     </div>
  •     <div class="box resim-grid box-yok">
  •  
  •         <?php print $fields['field_arkaplan']->content;?>
  •     </div> 
  •     <div class="grid-2 share-wrapper" >
  •         /* I want to add sharethis, this area*/
  •     </div>
  • </div>

</code>

Is it possible that ?

Thanks

yours truly

tevfik ŞİRİN

tevfiksirin's picture
tevfiksirin
Mon, 10/06/2014 - 11:06

Hi, I add this code, however, only the share throughout the site.

Including what should I do in order to share content.

  • <div class="grid-2 sharethiswrapper " >
  •  
  •        <?php print theme('sharethis', array(
  •       'data_options' => sharethis_get_options_array(),
  •       'm_title' => $entity->title,
  •       'm_path' => $path,)) ?>
  •  </div>

 

Thanks

cindy's picture
cindy
Tue, 10/07/2014 - 05:10

Hi, Just choose "block" for display and use the code below to print out

<?php
$share_this = module_invoke('sharethis', 'block_view', 'sharethis_block');
?>
<?php print $share_this['content'];?>

tevfiksirin's picture
tevfiksirin
Tue, 10/07/2014 - 05:46

Thank you for your attention, 

However, only shares throughout the site. 

How can I share content. 

test site:

Thanks 

Sincerely

tevfiksirin's picture
tevfiksirin
Tue, 10/07/2014 - 18:02

Hi,

Nodes that we want to use the module, 

View to select the block, does not meet our needs. 

I did not mention this to you, sorry. 

 

Thanks 

Sincerely

tevfiksirin's picture
tevfiksirin
Wed, 10/15/2014 - 03:29

<?php print $fields['sharethis']->content;?>

Write this way the problem was solved.

Thanks

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.