Get page title of view and panel page via url Is there any way to get page title of view and panel page using url. I tried

$normal_path = drupal_get_normal_path($path);
$item = menu_get_item($normal_path);
$title = $item['title'];


and it is giving empty title while it is working well for normal node.

Please suggest.
For pannel you can pass the page title in url
let say xyz/page_title
then add content to panel and choose New custom content in the body field your code will somewhat look like

&lt;?php
  $title = arg(1);
  drupal_set_title($title);
?&gt;


check screenhot for better understanding:

For views its a simple 2 step process
step1: Set the view path to take the title as wildcard
i.e. your view path will be view_path/%


step2: now change the title field on views to use the title wildcard by changing it to %1 as this is the first argument in the url


hope it helps you :)