0

私は基本的に記事の出力を変更したいと思っています。


私のページにリストされている各記事の間。

次のように、テーマの template.php の他の関数をオーバーライドしました。

function mytheme_preprocess_html(&$variables) {
    drupal_add_css('http://fonts.googleapis.com/css?family=Gudea', array('type' => 'external'));
}

記事に似たものを探していますか?

4

2 に答える 2

0

Have you looked at the Views module? Take a look http://drupal.org/project/views and use it to list content for you. Views can create a Page display for this content. You can then apply styles to the Views-generated HTML that will allow you to put dividing borders between the nodes listed. Views provides 'first' and 'last' classes as well so that you will not apply a border to the last element.

于 2012-06-05T22:18:02.527 に答える
0

テーマnode.tpl.phpを というファイルにコピーし、ファイルの末尾にnode--article.tpl.phpを追加<hr>します。

于 2012-06-04T22:48:32.940 に答える