1

I have created a page using views 3 like this

node/%/classroom

How can I set the breadcrumb and title for this page.

I tried to set using views menu option but restricts me to use normal menu for path with %.

Thanks in advance for your help.

Umar

1
  • Do you want to set the title of the page (which appears between the <title></title> tags? Or do you want to set the name of the link for the menu? Please be more specific. Mar 15, 2012 at 12:44

1 Answer 1

2

You can set with hook_page_alter()

if (request_path() == 'your/page/path') {
    $breadcrumb[] = l(t('Home'), NULL);
    $breadcrumb[] = l('Whatever', 'whatever');
    drupal_set_breadcrumb($breadcrumb);
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.