Google calendar manages your homepage

Author Message

Philipp Kamps

Friday 06 October 2006 2:40:33 pm

New extension:
http://ez.no/community/contribs/hacks/googlescheduled

The extension allows you to manage and schedule the content with your google calendar. It is not about scheduling the layout, neither scheduling the structure of the home page, but more simply about scheduling the contents that are placed in the placeholders defined in the home page. These placeholders called "zones" use a template fetch function that is accessing your google calendar to figure out what content supposed to be published at the very moment.
In your Google Calendar you create appointment with the node_id in the title field. If the template function finds an appointment in your google calendar and can read a node_id it will show this node_id in your predefined "zones". In a configuration file you can specify fallback node_ids in case there is no appointment for the actual time.

This extension is a prove-of-concept - it is not supposed to run in a productive environment in its current form.

The extension contains an example "pagelayout.tpl" file that shows how to define a zone in your page layout. You may want to enable the caching once it is successfully running in your environment.

INSTALL

- enable the extension
- configure "googlescheduled.ini"
( see inline doc)
- have a look to "extension/googlescheduled/design/googlescheduled/templates/pagelayout.tpl"
to define your zones
- comment your feedback
- have fun

Please don't use the forum for feedback but the extension comments, thanks.

http://www.mugo.ca
Mugo Web, eZ Partner in Vancouver, Canada

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

eZ debug

Timing: Jan 18 2025 11:40:17
Script start
Timing: Jan 18 2025 11:40:17
Module start 'layout'
Timing: Jan 18 2025 11:40:17
Module start 'content'
Timing: Jan 18 2025 11:40:18
Module end 'content'
Timing: Jan 18 2025 11:40:18
Script end

Main resources:

Total runtime0.7508 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 589.7891152.6250
Module start 'layout' 0.00540.0021 742.414139.4453
Module start 'content' 0.00750.7417 781.8594470.9141
Module end 'content' 0.74920.0015 1,252.77348.1563
Script end 0.7507  1,260.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4282160.0002
Check MTime0.00140.1896160.0001
Mysql Total
Database connection0.00070.086910.0007
Mysqli_queries0.706294.0624460.0154
Looping result0.00050.0607440.0000
Template Total0.721196.020.3605
Template load0.00250.330120.0012
Template processing0.718695.710320.3593
Template load and register function0.00010.013510.0001
states
state_id_array0.00140.185610.0014
state_identifier_array0.00140.192320.0007
Override
Cache load0.00210.2732190.0001
Sytem overhead
Fetch class attribute can translate value0.00070.097510.0007
Fetch class attribute name0.00080.103220.0004
XML
Image XML parsing0.00060.079010.0006
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00080.1116150.0001
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs