0

I am developing a site using Ubercart that shows product summaries on the main page (I believe these are called teasers). Each product has a voting widget provided by Vote Up/Down on its actual node/page. I've copied page.tpl.php to page-front.tpl.php because I want to add a small block or box that shows the number of upvotes on the main page (but not actually allow voting here) and finally sort these teasers by popularity (number of votes).

I can see that print $content is outputting this page's content but I am not sure where this is being generated so I can either hook into it or modify directly. I've coded themes and plugins in Wordpress but I don't know Drupal well enough yet.

Thanks in advance.

4

1 に答える 1

1

まず、フロントページを生成しているものを知っておく必要があります。ビューですか?または別のモジュール?

ビューの場合、Drupalバックエンドから投票数を簡単に追加できます。それが別のものである場合、それが何であるかに応じて、出力を変更する方法があります。

于 2012-12-03T03:05:26.800 に答える