My module use hook_menu to create some pages and tabs for content display. I also setup purl modifiers to display some URL path. The pages can be display using the purl path or without it, i.e. http://mysite.com/mycontent/X and http://mysite.com/my_purl_path/mycontent/X but - the tabs are being displayed on the first URL and not on the second (the one with the PURL).

/**
* Implementation of hook_menu().
*/
function mymodule_menu() {
	$items = array();
	$items['mycontent/%'] =  array(
	'page callback' => 'mymodule_overview',
	'page arguments' => array(1),
	'type' => MENU_NORMAL_ITEM,
	'weight' => -20,
	'title' => 'Overview',
	);
	
	$items['mycontent/%/overview'] =  array(
	'page callback' => 'mymodule_overview',
	'page arguments' => array(1),
	'type' => MENU_DEFAULT_LOCAL_TASK,
	'weight' => -20,
	'title' => 'Overview',
	);
	
	$items['mycontent/%/details'] =  array(
	'title' => t('Details'),
	'page callback' => 'mymodule_details',
	'page arguments' => array(1),
	'type' => MENU_LOCAL_TASK,
	'weight' => 1,
	);
	
	return $items;
}

Comments

jmiccolis’s picture

Status: Active » Postponed (maintainer needs more info)

Can you verify that this still happens on a more recent beta of purl?

bblake’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

I've tested and confirmed that I see the local tabs on both the purl and the non-purl versions of menu items that I've created based on the example above when using the current release of purl.