As reported in #1480522: Summary field ? there seems to be a bug in displaying the video

in the articles page only in multilingual installations. We are working on solving the issue and will come back soon with a solution.

Comments

kipper’s picture

...this problem is caused from the local module still before activating I18n with the several modules...

kipper

vkech’s picture

Hi,

i would like someone to test the following fix in a multi-lingual installation:

  1. Open page.tpt.php file with your favourite editor
  2. Locate the following code
    <?php if(isset($node) &&  !empty($node->body[$node->language][0]['safe_summary'])):?>
      <div class="node">
        <div class="copy">
          <?php print $node -> body[$node->language][0]['safe_summary'];?>
        </div>
      </div>
    <?php endif;?>

    [usually lines 162-168]

  3. Change the code mentioned above to
    <?php if(isset($node) &&  !empty($node->body['und'][0]['safe_summary'])):?>
      <div class="node">
        <div class="copy">
          <?php print $node -> body['und'][0]['safe_summary'];?>
        </div>
      </div>
    <?php endif;?>
  4. Save the changes
  5. Clear the Drupal cache ( Home » Administration » Configuration » Development » Performance » Clear all caches)

Thanks
Bill

kipper’s picture

Hi Bill,

This problem is solved!!!

Many Thanks
kipper

vkech’s picture

Thank you kipper for your reply.

This fix will be implemented in the next update of Selecta.

Bill

kipper’s picture

OK Bill, in case I find any failing I’ll let you know the soonest.

Many thanks again for your work and for the problems you have solved!

Kipper

vkech’s picture

Status: Active » Fixed
gtsopour’s picture

Issue tags: +videos, +Selecta, +Video Drupal theme

Hello,
Just committed the following change to page.tpl.php - http://drupalcode.org/project/selecta.git/commit/2c845dc

From

<?php if(isset($node) &&  !empty($node->body[$node->language][0]['safe_summary'])):?>
  <div class="node">
    <div class="copy">
      <?php print $node -> body[$node->language][0]['safe_summary'];?>
    </div>
  </div>
<?php endif;?>

To

<?php if(isset($node) &&  !empty($node->body['und'][0]['safe_summary'])):?>
  <div class="node">
    <div class="copy">
      <?php print $node -> body['und'][0]['safe_summary'];?>
    </div>
  </div>
<?php endif;?>

Thanks
/George

skounis’s picture

Status: Fixed » Closed (fixed)
vkech’s picture

Issue summary: View changes