I copied calendar-month.tpl.php to my theme folder for customize reasons. Since that moment node links look like this:

<a href="/drupal/node/16" title="&amp;amp;lt;a href=&amp;amp;quot;/drupal/node/16&amp;amp;quot; title=&amp;amp;quot;Sommerferien&amp;amp;quot; alt=&amp;amp;quot;Sommerferien&amp;amp;quot;&amp;amp;gt;Lehrer- fortbildung&amp;amp;lt;/a&amp;amp;gt;" alt="&amp;amp;lt;a href=&amp;amp;quot;/drupal/node/16&amp;amp;quot; title=&amp;amp;quot;Sommerferien&amp;amp;quot; alt=&amp;amp;quot;Sommerferien&amp;amp;quot;&amp;amp;gt;Lehrer- fortbildung&amp;amp;lt;/a&amp;amp;gt;">Lehrer- fortbildung</a>

This is with the original calendar-month.tpl.php from calendar/theme/ !

And now how it looks like without this file in my theme folder:

<a href="/drupal/node/16" title="Sommerferien" alt="Sommerferien">Lehrer- fortbildung</a>

Does anyone have the same issue?

Comments

haggins’s picture

without rewriting the node-title fields output to 'Lehrer- fortbildung' it looks even more terrible:

<a href="/drupal/node/18" title="&amp;amp;lt;a href=&amp;amp;quot;/drupal/node/18&amp;amp;quot; title=&amp;amp;quot;Mikrobiologie&amp;amp;quot; alt=&amp;amp;quot;Mikrobiologie&amp;amp;quot;&amp;amp;gt;Mikrobiologie&amp;amp;lt;/a&amp;amp;gt;" alt="&amp;amp;lt;a href=&amp;amp;quot;/druapl/node/18&amp;amp;quot; title=&amp;amp;quot;Mikrobiologie&amp;amp;quot; alt=&amp;amp;quot;Mikrobiologie&amp;amp;quot;&amp;amp;gt;Mikrobiologie&amp;amp;lt;/a&amp;amp;gt;">&lt;a href=&quot;/drupal/node/18&quot; title=&quot;Mikrobiologie&quot; alt=&quot;Mikrobiologie&quot;&gt;Mikrobiologie&lt;/a&gt;</a>
haggins’s picture

I did a little research and found out that you need 'template_preprocess_calendar_month()' in your template.php to reproduce it.

Following steps should reproduce the problem:
1. use Garland theme
2. copy function 'template_preprocess_calendar_month(&$vars)' from calendar/theme/theme.inc to function 'phptemplate_preprocess_calendar_month(&$vars)' in template.php at Garlands folder
3. copy calendar-month.tpl.php from calendar/theme/ to Garland folder

haggins’s picture

Ok, I've got a solution. Maybe a maintainer should have a look over this issue whether this is a bug or not.

After you did everything mentioned in #2 do the following:
1. copy 'template_preprocess_calendar()' from calendar/theme/theme.inc to function 'phptemplate_preprocess_calendar()' in template.php at Garlands folder.
2. in your new phptemplate_preprocess_calendar() replace line

elseif (!empty($field) && is_object($field)) {

with

elseif (!empty($field) && is_object($field) && $field_alias != 'node_title') {

3. in your phptemplate_preprocess_calendar_month() replace line

template_preprocess_calendar($vars);

with

phptemplate_preprocess_calendar($vars);
solide-echt’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

The D6 branch is no longer supported so we're closing this issue. If you think this issue still exists in D7 you can open a new one.