type == 'property_lease') { // set breadcrumb $term_id = $node->field_property_lease_suburb['und'][0]['tid']; $term = taxonomy_term_load($term_id); $term_name = $term->name; $breadcrumb[] = l(t('Home'), NULL); $breadcrumb[] = l('房屋出租信息', 'lease'); $breadcrumb[] = l($term_name, 'lease/suburb/' . $term_id); /*$breadcrumb[] = $node->title;*/ drupal_set_breadcrumb($breadcrumb); // rewrite suburb link (make sure manage this field display as link) $node->content['field_property_lease_suburb'][0]['#href'] = 'lease/suburb/' . $term_id; } /* property wanted node */ if ($node->type == 'property_wanted') { // set breadcrumb if ($node->field_property_wanted_suburb) { $term_id = $node->field_property_wanted_suburb['und'][0]['tid']; $term = taxonomy_term_load($term_id); $term_name = $term->name; } $breadcrumb[] = l(t('Home'), NULL); $breadcrumb[] = l('房屋求租信息', 'wanted'); $breadcrumb[] = l($term_name, 'wanted/suburb/' . $term_id); /*$breadcrumb[] = $node->title;*/ drupal_set_breadcrumb($breadcrumb); // rewrite suburb link (make sure manage this field display as link) $node->content['field_property_wanted_suburb'][0]['#href'] = 'wanted/suburb/' . $term_id; } /* used node */ if ($node->type == 'used') { // set breadcrumb $term_id = $node->field_used_suburb['und'][0]['tid']; $term = taxonomy_term_load($term_id); $term_name = $term->name; $breadcrumb[] = l(t('Home'), NULL); $breadcrumb[] = l('二手家具电器信息', 'used'); $breadcrumb[] = l($term_name, 'used/suburb/' . $term_id); /*$breadcrumb[] = $node->title;*/ drupal_set_breadcrumb($breadcrumb); // rewrite suburb link (make sure manage this field display as link) if ($node->content['field_used_suburb']) { $node->content['field_used_suburb'][0]['#href'] = 'used/suburb/' . $term_id; } // rewrite used type link //@TODO: debug. if there is value, then show. do kpr test later //$type_term_id = $node->field_used_type['und'][0]['tid']; //$node->content['field_used_type'][0]['#href'] = 'used/type/' . $type_term_id; } /* cleaning node */ if ($node->type == 'cleaning') { // set breadcrumb $breadcrumb[] = l(t('Home'), NULL); $breadcrumb[] = l('清洁服务', 'cleaning'); /*$breadcrumb[] = $node->title;*/ drupal_set_breadcrumb($breadcrumb); } /* mover node */ if ($node->type == 'mover') { // set breadcrumb $breadcrumb[] = l(t('Home'), NULL); $breadcrumb[] = l('搬运服务', 'mover'); /*$breadcrumb[] = $node->title;*/ drupal_set_breadcrumb($breadcrumb); } } } 墨尔本租房网 - 墨尔本租房 - Melbourne

墨尔本租房网 - 专为澳大利亚墨尔本华人服务.
提供最新, 最全的出租, 求租, 二手家具交易 等资讯. 免费发布信息.
Melbourne 最专业, 易用的免费租房网站. 找房, 租房 就上MelRent.

Homepage