In drupal 7 when a page is previewed in node add/edit it should be functioning like this..
If the page content (text content added) in full view is not equal to trimmed view, then it should show preview of both views. And if both full view content and trimmed view content are equal, it should show only a single preview.
I think the code which implement this is in nod.page.inc.

if ($trimmed != $full) {
    drupal_set_message(t('The trimmed version of your post shows what your post looks like when promoted to the main page or when exported for syndication.<span class="no-js"> You can insert the delimiter "&lt;!--break--&gt;" (without the quotes) to fine-tune where your post gets split.</span>'));
    $output .= '<h3>' . t('Preview trimmed version') . '</h3>';
    $output .= $trimmed;
    $output .= '<h3>' . t('Preview full version') . '</h3>';
    $output .= $full;
  }
  else {
    $output .= $full;
  }

The issue is even if page content for full view and trimmed view are same it shows both previews. Something is causing the if statement to be always true.

Comments

droplet’s picture

Status: Active » Closed (works as designed)

diff theme layout for trimmed and full version that what it is TRUE.

(Yes, it's useless for 99.9% because almost all theme with diff layout for trimmed & full content)