Closed (duplicate)
Project:
Site map
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Mar 2010 at 10:08 UTC
Updated:
21 May 2010 at 08:00 UTC
I just wanted to suggest you to use more theme functions :
this way, we could use phptemplate to modify the html rendering if we want, without having to tweak the module.
For example, for the menu rendering, I wanted to show their title, instead of 'Primary Links' or 'Secondary Links'.
So I had to go in the _site_map_menus() function in sitemap.module, and replace
if($mid == 'primary-links'){
$output .= '<h3>Menu principal</h3>';
}
if($mid == 'secondary-links'){
$output .= '<h3>Menu secondaire</h3>';
}
by
$output .= '<h3>'. $menu['title'] .'</h3>';
If it has been a theme function, i would just have to go in my template.php and redeclare the function with phptemplate (or my theme name) to do this.
Is it possible, or am I totally out ?
thanks ;)
Comments
Comment #1
frjo commentedWhere did you find this code? It is not in the site map module as far as I can tell.
For better theme functions in Site map I recommend you take 6.2-dev for a spin.
http://ftp.drupal.org/files/projects/site_map-6.x-2.x-dev.tar.gz
Comment #2
hass commented#247077: Add (node/block)-site_map.tpl.php support for custom theming
Comment #3
tic2000 commentedThis is no more an issue in the last 6.x-2.x dev version.
Comment #4
hass commentedHe asked for MORE theming functions.