Skip to main content
Language and formatting.
Source Link
Shawn Conn
  • 26.9k
  • 15
  • 49
  • 73

There is no field in manage display of content type to display Flag link. There is a tpl file (node--article--teasernode--article--teaser.tpl.php) for teaser mode displaying bookmark

<?php if (isset($content['links']['flag'])) : ?>
    <?php echo render($content['links']['flag']);?>
  <?php endif; ?>

But for another mode this having View mode teaser_2_col and tpl file name node--teaser-2-colnode--teaser-2-col.tpl.php, $content['links'] does not have a Flag element.

There is no field in manage display of content type to display Flag link. There is a tpl file (node--article--teaser) for teaser mode displaying bookmark

<?php if (isset($content['links']['flag'])) : ?>
    <?php echo render($content['links']['flag']);?>
  <?php endif; ?>

But for another mode this having View mode teaser_2_col and tpl file name node--teaser-2-col, $content['links'] does not have a Flag element.

There is no field in manage display of content type to display Flag link. There is a tpl file (node--article--teaser.tpl.php) for teaser mode displaying bookmark

<?php if (isset($content['links']['flag'])) : ?>
    <?php echo render($content['links']['flag']);?>
<?php endif; ?>

But for another mode this having View mode teaser_2_col and tpl file name node--teaser-2-col.tpl.php, $content['links'] does not have a Flag element.

How to display flag(bookmark)a Flag in a tpl file for different viewView modes?

There is no field in manage display of content type to display flagFlag link. There is a tpl file  (node--article--teasernode--article--teaser) for teaser mode displaying bookmark

  
<?php if (isset($content['links']['flag'])) : ?>
    <?php echo render($content['links']['flag']);?>
  <?php endif; ?>
  

But for another mode this having viewView mode = teaser_2_colteaser_2_col and tpl file name = node--teaser-2-col . $content['links']node--teaser-2-col, $content['links'] does not have flaga Flag element.

How to display flag(bookmark) in tpl file for different view modes?

There is no field in manage display of content type to display flag link. There is tpl file(node--article--teaser) for teaser mode displaying bookmark

 
<?php echo render($content['links']['flag']);?>
 

But for another mode this having view mode = teaser_2_col and tpl file name = node--teaser-2-col . $content['links'] does not have flag element.

How to display a Flag in a tpl file for different View modes?

There is no field in manage display of content type to display Flag link. There is a tpl file  (node--article--teaser) for teaser mode displaying bookmark

 
<?php if (isset($content['links']['flag'])) : ?>
    <?php echo render($content['links']['flag']);?>
  <?php endif; ?>
 

But for another mode this having View mode teaser_2_col and tpl file name node--teaser-2-col, $content['links'] does not have a Flag element.

Source Link
neha
  • 662
  • 2
  • 10
  • 23

How to display flag(bookmark) in tpl file for different view modes?

There is no field in manage display of content type to display flag link. There is tpl file(node--article--teaser) for teaser mode displaying bookmark

<?php echo render($content['links']['flag']);?>

But for another mode this having view mode = teaser_2_col and tpl file name = node--teaser-2-col . $content['links'] does not have flag element.