Include Views paths?

edward.peters - August 29, 2008 - 16:19
Project:Clickpath
Version:6.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

This is a FANTASTIC module! Thanks so much. I notice that it only stores the paths of page views, and if a page display of a View is visited, a blank line appears in the list of recent pages. It would be great if pages which were full Views page displays could be stored too.

#1

coltrane - March 21, 2009 - 20:21

#2

jchuck5612 - June 4, 2009 - 18:15

I don't know if this is applicable in all situations but I was able to get my view paths recognized using the following code. I am just beginning my Drupal development experience so I assume there is a lot wrong here but for now it's working.

Replaced:
$title = _clickpath_path_is_frontpage($path) ? t('Home') : $menu_item['title'];

With:

if (_clickpath_path_is_frontpage($path) == t('Home')) {
$title = t('Home');
}
else {
$title = $menu_item['title'];
if(empty($title)) {
$title = ucwords($path);
}
}

#3

coltrane - May 31, 2009 - 21:41
Category:feature request» bug report

I think this is a bug, so reclassifying.

#4

coltrane - May 31, 2009 - 21:50

Give the patch at #399008: Use menu_get_item() instead of drupal_get_title() a try and see if Views paths appear correctly. I'll try here soon if I can.

 
 

Drupal is a registered trademark of Dries Buytaert.