I am using Pixture Reloaded theme and notice that not all the theming is being displayed. In particular, the links under the image in the image node are left justified and not right justified as in the theme. I notice the same for the gallery node display.

Another difference is that I have the Quotes module installed, but the gallery and image nodes do not display the quote link for the comments i the links section of the node.

Comparing node-image-default.tpl.php to node.tpl.php indicates subtle differences. For example, there are additional/different classes assigned to content and links. Also, the theme's node template contains additional elements and php coding not in the module templates.

Comments

kmonty’s picture

Status: Active » Postponed (maintainer needs more info)

Is this still an issue? Can you point to any specific errors in the code?

Tally’s picture

This is still an issue, but one that may not require recoding. I don't see this as an error in Node Gallery code.

The problem stems from some themes (Pixture Reloaded in particular) using different css class names than Node Gallery uses. For example, node-image-default.tpl.php has

<?php if ($links): ?>
  <div class="links">
    <?php print $links; ?>
  </div>
<?php endif; ?>

And the theme's node.tpl.php has

<?php if (!empty($links)): ?>
  <div class="actions clearfix">
    <?php print $links; ?>
  </div>
<?php endif; ?>

One fix is to copy node-image-default.tpl.php to the theme folder and add the theme's classes to the template.

An alternative fix is to remove node-image-default.tpl.php from the node_gallery/theme/ folder (actually, I just renamed it). This forces Node Gallery to use the theme's default node template. The big difference that I see is that the Node Gallery template does not display the user's avatar, which in my theme is beside the image navigation bar added by Node Gallery (in my theme, $content wraps around $picture, which is right justified).

I am not sure why Node Gallery needs a node template. I see that the template does not display $picture, but I don't see any other substantive changes.

I guess the value of this issue is to alert users of a possible reason if themeing discrepancies are noted between Node Galley and other nodes. If you want to mark this issue as won't fix I am cool with that because the issue is easily fixed by the user as noted above.

kmonty’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Yes, I'm marking this as won't fix. In general, Node Gallery matches standard Drupal/zen class names. People are welcome to override the tpl files for custom themes.