Drupal, Kommentare und Templates

Blog-Eintrag vom 27.08.2009

Kanntest du schon $comment_count?
Diese Variable bietet in node-Templates die Anzahl der vorhandenen Kommentare an. Sehr praktisch ... und nirgendwo dokumentiert.

Außerdem:
comment.tpl.php ... nicht sehr mächtig, aber immerhin kann man hier Kommentare templaten. Vielleicht hilfreich ... wenn man zum Beispiel zu den Kommentaren registrierter User auch Avatare zeigen möchte oder so.

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options