Posted by noby on May 4, 2010 at 10:04pm
Bookページで下位ページを追加して行くと下位ページへの
リンクが表示されますが、そのリンクはコンテンツの下の方に表示
されます。これをコンテンツの上の方に表示させる方法はないでしょうか。
node.tpl.phpを見てみても、内容表示部分は
<?php
print $content
?>の一文で表されているので変更できませんでした。この$contentの内容
を定義しているHTML表示関数があればオーバーライドして変更できそう
なのですが、その関数を見つけることができませんでした。
Comments
できました
Content Templates(Contemplate)モジュールでできました。
お騒がせしました。
英語ですみません。 Add devel
英語ですみません。
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
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 thenode/XURL) and click the "Devel" tab.The Boise Drupal Guy!