Pagelayout ICalendar

Pagelayout ICalendar

Thursday 25 February 2010 2:54:00 am - 1 reply

Author Message

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:evt_12345@solucom.fr  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 );

:)

You must be logged in to post messages in this topic!

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