Bookページで下位ページへのリンク位置を変更する方法について

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

Bookページで下位ページを追加して行くと下位ページへの
リンクが表示されますが、そのリンクはコンテンツの下の方に表示
されます。これをコンテンツの上の方に表示させる方法はないでしょうか。

node.tpl.phpを見てみても、内容表示部分は

<?php
print $content
?>

の一文で表されているので変更できませんでした。この$contentの内容
を定義しているHTML表示関数があればオーバーライドして変更できそう
なのですが、その関数を見つけることができませんでした。

Comments

できました

noby's picture

Content Templates(Contemplate)モジュールでできました。
お騒がせしました。

英語ですみません。 Add devel

cloneofsnake's picture

英語ですみません。

Add devel module,

in node.tpl.php, add: <?php dsm($node); ?>

look into the $node object, in it there's content array, and in that u'll find book_navigation

so, override the node.tpl.php, rather than just printing $content, you break it all out in the order you'd like your node to render:

...
<?php print $node->nid; ?>
<?php print $node->content['book_navigation']['#value']; ?>
etc...

If you have the Devel module

Garrett Albright's picture

If you have the Devel module enabled, adding dsm() to node.tpl.php isn't necessary - just go to the page for that node (at the node/X URL) and click the "Devel" tab.

日本 コミュニティ: Drupal Japan User Group

Group organizers

Group categories

Group notifications

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

Hot content this week