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 |
Jump to:
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
#399008: Use menu_get_item() instead of drupal_get_title() may solve this
#2
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
I think this is a bug, so reclassifying.
#4
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.