I think it looks quite bad to include the site title in the modal dialog title (which is included in $head_title via the theme file). Let's use just the page title. Maybe we should even add a line of comment here to make this clear?
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | modalframe-496056-2.patch | 794 bytes | markus_petrux |
| modaltitle.patch | 773 bytes | gábor hojtsy |
Comments
Comment #1
gábor hojtsyBtw, this code comes from theme.inc, where $head_title is assembled (primarily from strip_tags(drupal_get_title())).
Comment #2
markus_petrux commentedWe already have the title available for page template, which is what we override here. So, how about this?
Comment #3
markus_petrux commentedCommitted patch in #2 to D6 and D7.
Side note: If we want to add/change more template variables, we can always do it in the preprocess function already present in the module.
Comment #4
gábor hojtsyLooks good to me, thanks.