On my installation the ical view output ignores the ical template I created. As on module page documented I created a template file with the name "node--testtype--ical.tpl.php". I think this is the right name because also a template with the name "node--testtype.tpl.php" exists and it works (normal view). The DESCRIPTION tag contains only the stupid output of the fields I selected at the ical tab.

Is there no more support for templates? Or is this a bug?

CommentFileSizeAuthor
#6 dateical.png39.78 KBpheraph

Comments

coredumperror’s picture

Status: Active » Closed (works as designed)

Templates only work in the older version of Date iCal, 7.x-1.x. If you're using 7.x-2.4, templates for iCal output are no longer supported, because Date iCal doesn't use the template system for formatting iCal feeds any more.

pheraph’s picture

Version: 7.x-2.4 » 7.x-2.6
Status: Closed (works as designed) » Needs review

I understand the template system isn't used with the 2.x-branch anymore, but how can I customize the Description-field of the iCal-feed? Currently it's populated with a mix of fields, but I'd prefer if only the content body would be there instead:

======== EVENTTITLE [1] ==========================================

20130614T1930 to 2100

[1] URL
vlad.pavlovic’s picture

Status: Needs review » Closed (works as designed)

If you go to 'Manage display' for the content type you are using for your iCal feed, you will now see an 'iCal' display type (along with 'default', 'teaser', etc). This is your description field. Here you control which fields, labels and format to include in the description field. Hope that helps.

pheraph’s picture

Thanks for your fast answer. I went there and changed all fields to "hidden", but the description field still contains some data like that:

======== EVENTTITLE [1] ==========================================

[1] URL

Shouldn't the description-field be empty in that case?

coredumperror’s picture

Perhaps you accidentally just set the labels to hidden? In order to completely remove a field from the display, you need to set its Region to "Disabled".

pheraph’s picture

StatusFileSize
new39.78 KB

That's strange, I have set all fields in the iCal-View as hidden:

dateical

But I still get the following fields in the iCal-file:

DESCRIPTION:======== UPPERCASETITLE [1] ==========================
 ===============\n\n\n[1] http://url
SUMMARY:Title

I already cleared all caches (drush cc all). It's not a drama, but I am still wondering why this would happen.

coredumperror’s picture

Hmm, that's definitely odd. Do you perhaps have some other module installed that might be altering the iCal view mode's output? There's nothing in Date iCal that could be adding those equal signs.

pheraph’s picture

I looked through the module list and couldn't find a module that is supposed to do something similar. As the drupal installation was migrated from Drupal 6 there might be some unexpected behaviour. Anyway, this is how I "fixed" the problem for now:

sites/all/libraries/iCalcreator/iCalcreator.class.php:2626

function createDescription() {
    return FALSE;
 }