#views2

Events happening in the community are now at Drupal community events on www.drupal.org.
jessSchn's picture

Drupal 6: views_embed_view() doesn't appear to be rendering

I recently edited a template file (node-training_class.tpl.php) for training classes on one of my Drupal 6 websites (http://www.helpsystems.com/services/training/robotschedule-operations).

This template file needs to embed a Block(Next Instance (Webinar)) that is being configured by a View (view: Upcoming_Class_Instances).

Here is my code:

<?php foreach($node->taxonomy as $term) { $class_type = $term->name; }

if ($class_type == "Webinar" || $class_type == "Free Online Training") {
print views_embed_view('Upcoming_Class_Instances', $display_id = 'block_2');
}

Read more
jessSchn's picture

Accessing View's field's content?

I have a Press Release content type setup. And now I'm working on creating a view to easily list out all press releases in one spot with the Title (linked to the article) and a Teaser. Here is the tricky part:

The Press Release content type has a field called press_type. Allowed values are "Internal" or "External" (required field).

If Internal is selected I want the title on the views page linked to the corresponding node/article.

Read more
Subscribe with RSS Syndicate content