Pagelayout ICalendar

Author Message

anne martinet

Thursday 25 February 2010 2:54:00 am

Hi everyone,

I want a new pagelayout for iCalendar.

In my web page, I have a link : <a href="layout/set/ical/{$node.url_alias}"> Lien iCalendar </a>

And my pagelayout iCal it's for exemple :

BEGIN:VCALENDAR
METHOD:PUBLISH
BEGIN:VEVENT
DTSTART:20091028T090000Z
DTEND:20091028T093000Z
TRANSP:TRANSPARENT
UID:[email protected]
DTSTAMP:20091028T142520Z
SUMMARY:titre de l'événement
DESCRIPTION:description courte de l'événement en
  question.\nPossiblement sur\nPlusieurs lignes\n\n
URL:http://www.solucom.fr/evenements/12345
CLASS:PUBLIC
END:VEVENT
END:VCALENDAR

And when I clic in the link, I want open a file .ics.

How can I say in my pagelayout iCal that it's format file .ics ????

What the best way to do that?

Thanks in advanced,

Anne.

anne martinet

Friday 26 February 2010 7:26:42 am

I found it !!

:)

  • Solucom/extension/Solucom/settings/layout.ini.append.php :
<?php /* #?ini charset="utf-8"?[ical] PageLayout=ical_pagelayout.tpl 

*/ ?>
  • Solucom/extension/solucom/design/solucom/templates/ical_pagelayout.tpl
{*?template charset=utf-8?*}  BEGIN:VCALENDAR  METHOD:PUBLISH  BEGIN:VEVENT  DTSTART:20091028T090000Z  DTEND:20091028T093000Z  TRANSP:TRANSPARENT  UID:[email protected]  DTSTAMP:20091028T142520Z  SUMMARY:titre de l'événement  DESCRIPTION:description courte de l'événement en  question.\nPossiblement sur\nPlusieurs lignes\n\n  URL:http://www.solucom.fr/evenements/12345  CLASS:PUBLIC  END:VEVENT  END:VCALENDAR
  • In pagelayout :
<a href="layout/set/ical/content/view/full/2/nom_fichier.ics"} >Lien</a>
  • Solucom/settings/override/site.ini.append.php
HTTPHeaderSettings]  # Enable/disable custom HTTP header data.  CustomHeader=enabled  # Only apply custom headers for anonymous users  OnlyForAnonymous=disabled  # Header list. Contains all HTTP which should override standard ones.  HeaderList[]=Content-Type  Content-Type[]  Content-Type[/layout/set/ical]=text/calendar; qs=0.9
  • Solucom/kernel/classes/ezhttpheader.php [ligne 139]
//@list( $headerValue, $depth, $level ) = explode( ';', $value ); 

@list( $headerValue, $depth, $level ) = explode( '@@', $value );

:)

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.