Skip to main content
improved grammar
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

Breadcrumbs Are breadcrumbs not working properly?

I'mI am using i breadcrumb in views.i put a phpthe following PHP code in views(basic setting>header)the view's header to set the breadcrumbs of the view. and my code is:-

<?php
global $base_url;
$path = $base_url . "/tag/" . arg(1) . "/" . arg(2);
$title = ucfirst(str_replace("-", " ", arg(2)));
drupal_set_title($title);
$breadcrumb = array();
$breadcrumb[] = l('Home', '<front>');
$breadcrumb[] = l($title, $path);
drupal_set_breadcrumb($breadcrumb);
print views_embed_view('article_tag_name', 'default', array(arg(2)));
?>

But inIn my page its shows page title and breadcrumb into, the breadcrumbs contain the term idID, not the term name like"texonomy/term/id" but i want. How do I get the term name instead of term id?

Breadcrumbs not working properly?

I'm using i breadcrumb in views.i put a php code in views(basic setting>header). and my code is:-

<?php
global $base_url;
$path = $base_url."/tag/".arg(1)."/".arg(2);
$title = ucfirst(str_replace("-"," ",arg(2)));
drupal_set_title($title);
$breadcrumb = array();
$breadcrumb[] = l('Home', '<front>');
$breadcrumb[] = l($title, $path);
drupal_set_breadcrumb($breadcrumb);
print views_embed_view('article_tag_name', 'default', array(arg(2)));
?>

But in my page its shows page title and breadcrumb into term id not term name like"texonomy/term/id" but i want term name instead of term id

Are breadcrumbs not working properly?

I am using the following PHP code in the view's header to set the breadcrumbs of the view.

global $base_url;
$path = $base_url . "/tag/" . arg(1) . "/" . arg(2);
$title = ucfirst(str_replace("-", " ", arg(2)));
drupal_set_title($title);
$breadcrumb = array();
$breadcrumb[] = l('Home', '<front>');
$breadcrumb[] = l($title, $path);
drupal_set_breadcrumb($breadcrumb);
print views_embed_view('article_tag_name', 'default', array(arg(2)));

In my page, the breadcrumbs contain the term ID, not the term name. How do I get the term name?

added 64 characters in body
Source Link

I'm using i breadcrumb in views.i put a php code in views(basic setting>header). and my code is:-

<?php
global $base_url;
$path = $base_url."/tag/".arg(1)."/".arg(2);
$title = ucfirst(str_replace("-"," ",arg(2)));
drupal_set_title($title);
$breadcrumb = array();
$breadcrumb[] = l('Home', '<front>');
$breadcrumb[] = l($title, $path);
drupal_set_breadcrumb($breadcrumb);
print views_embed_view('article_tag_name', 'default', array(arg(2)));
?>

But in my page its shows page title and breadcrumb into term id not term name like"texonomy/term/id" but i want term name instead of term id

I'm using i breadcrumb in views.i put a php code in views(basic setting>header). and my code is:-

<?php
global $base_url;
$path = $base_url."/tag/".arg(1)."/".arg(2);
$title = ucfirst(str_replace("-"," ",arg(2)));
drupal_set_title($title);
$breadcrumb = array();
$breadcrumb[] = l('Home', '<front>');
$breadcrumb[] = l($title, $path);
drupal_set_breadcrumb($breadcrumb);
print views_embed_view('article_tag_name', 'default', array(arg(2)));
?>

But its shows like"texonomy/term/id" but i want term name instead of term id

I'm using i breadcrumb in views.i put a php code in views(basic setting>header). and my code is:-

<?php
global $base_url;
$path = $base_url."/tag/".arg(1)."/".arg(2);
$title = ucfirst(str_replace("-"," ",arg(2)));
drupal_set_title($title);
$breadcrumb = array();
$breadcrumb[] = l('Home', '<front>');
$breadcrumb[] = l($title, $path);
drupal_set_breadcrumb($breadcrumb);
print views_embed_view('article_tag_name', 'default', array(arg(2)));
?>

But in my page its shows page title and breadcrumb into term id not term name like"texonomy/term/id" but i want term name instead of term id

added 20 characters in body
Source Link
niksmac
  • 7.7k
  • 3
  • 31
  • 69

i'm using i breadcrumb in views.i put a php code in views(basic setting>header). and my code is:- I'm using i breadcrumb in views.i put a php code in views(basic setting>header). and my code is:-

<?php
global $base_url;
$path = $base_url."/tag/".arg(1)."/".arg(2);
$title = ucfirst(str_replace("-"," ",arg(2)));
drupal_set_title($title);
$breadcrumb = array();
$breadcrumb[] = l('Home', '<front>');
$breadcrumb[] = l($title, $path);
drupal_set_breadcrumb($breadcrumb);
print views_embed_view('article_tag_name', 'default', array(arg(2)));
?>

global $base_url; $path = $base_url."/tagBut its shows like"texonomy/".arg(1)."term/".arg(2);

$title = ucfirst(str_replace("-"," ",arg(2))); drupal_set_title($title); $breadcrumb = array(); $breadcrumb[] = l('Home', ''); $breadcrumb[] = l($title, $path);

drupal_set_breadcrumb($breadcrumb); print views_embed_view('article_tag_name', 'default', array(arg(2))); ?>

but its shows like"texonomy/term/id" but i want term name instead of term id........id" but i want term name instead of term id

i'm using i breadcrumb in views.i put a php code in views(basic setting>header). and my code is:-

<?php

global $base_url; $path = $base_url."/tag/".arg(1)."/".arg(2);

$title = ucfirst(str_replace("-"," ",arg(2))); drupal_set_title($title); $breadcrumb = array(); $breadcrumb[] = l('Home', ''); $breadcrumb[] = l($title, $path);

drupal_set_breadcrumb($breadcrumb); print views_embed_view('article_tag_name', 'default', array(arg(2))); ?>

but its shows like"texonomy/term/id" but i want term name instead of term id........

I'm using i breadcrumb in views.i put a php code in views(basic setting>header). and my code is:-

<?php
global $base_url;
$path = $base_url."/tag/".arg(1)."/".arg(2);
$title = ucfirst(str_replace("-"," ",arg(2)));
drupal_set_title($title);
$breadcrumb = array();
$breadcrumb[] = l('Home', '<front>');
$breadcrumb[] = l($title, $path);
drupal_set_breadcrumb($breadcrumb);
print views_embed_view('article_tag_name', 'default', array(arg(2)));
?>

But its shows like"texonomy/term/id" but i want term name instead of term id

Source Link
Loading