Seeking help with Paging Module

Events happening in the community are now at Drupal community events on www.drupal.org.
rggoode's picture

I don’t know if this is the appropriate place to ask this or not... I’ve been wracking my brain for the last couple of days trying to solve this and all I have to show for it is a severely wracked brain. Since we’re meeting in a couple of days, I thought I ask this here, in hopes that someone might be able to point me in the right direction>

I wonder is anyone is familiar with the Paging module? http://drupal.org/project/paging I have an article content-type that I’m using Paging with, and it works fine, except that EVERY page has all of the CCK fields for that content-type displayed.

ie:
Page 1-
Title
field_subhead
field_byline
field_article_image
body

Page 2 (page 3, page 4, etc.)-
Title
field_subhead
field_byline
field_article_image
body (continued)

So I’m struggling with finding a method to have the opening page start with a set of CCK fields (Title, Subhead, Byline, Article-image), followed by the first page of body content. But then on subsequent pages, only display the Title and body content.

So the results would be:
Page 1-
Title
field_subhead
field_byline
field_article_image
body

Page 2 (page 3, page 4, etc.)-
Title
body (continued)

I've been trying to follow the suggestion in the Paging documentation here for "Theming nodes or placing CCK fields based on the viewed page" http://drupal.org/node/363630, but I'm not having much success.

Basically, it suggests the following:
In my subtheme template.php file, add subThemeName_phptemplate_variables:

<?php
function _phptemplate_variables($hook, $vars = array()) {
  if (
$hook == 'node') {
    if (
module_exists('paging')) {
     
$page = isset($_GET['page']) ? $_GET['page'] : '';
     
$pager_page_array = explode(',', $page);
     
$vars['page'] = isset($pager_page_array[1]) ? $pager_page_array[1] : 0;
    }
  }
  return
$vars;
}
?>

Then, to show the CCK field_xxx on the first page only, I place in node.tpl.php (or in this case node-mycontenttype.tpl.php):

<?php
if (!$page): /* viewing the first page */
?>

<?php
print $field_image[0]['view'];
?>

<?php
endif;
?>

<?php
print $node->content['body']['#value']
?>

This doesn’t seem to do it, and I just haven’t learned enough about PHP yet to figure out how--or where--to modify it. I've left some questions in the Paging issue queue, but haven't found any response. If anyone has any suggestions,or can point me in the right direction, I’d REALLY appreciate it.

New Hampshire

Group categories

Regional Audience

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: