Drupal Custom Content Type in a foreach loop

1
2
<?php
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
For each loop for custom content. In this particular case we are using a content type called news and we are echoing out data from four different fields. Make special not of the date formatting. No matter what setting I tried or date module Drupal always displayed the date in longer number format with the T00:00:00. This also uses a php modulus iterator to display div called spacer after every three entries. As an aside I would like to add that after using Drupal for the past three months, I'm glad the door to roof where I work is locked.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.