module content into sidebar?

Author Message

Terry Grossman

Wednesday 07 July 2004 7:19:14 am

Hello,

I'm trying to add content into a sidebar on my "pagelayout.tpl" -- much like the ez.no homepage which has a list of related content down the right side of the page. I have modified my pagelayout.tpl to have a table layout, with the current node content being displayed in the main column and the right column is defined in an included tpl file -- {include uri="design:sidebar.tpl"}

I understand how to use fetch in sidebar.tpl in order to retrieve nodes and display them using templates. That works, and I can (for instance) retrieve articles and display them.

But I have spent some time installing and tinkering with ezCalendar and would like to display the content produced by the calendar module using the "month_small" module view. This module/view produces html code and returns it in $content

I would think that I should be able to call the module from within "sidebar.tpl" and then include the $content in the sidebar. I haven't been able to get this to work, nor can I find any information on how to do this.

Any pointers would be greatly appreciated

Thanks

Terry G.

Paul Borgermans

Wednesday 07 July 2004 9:30:36 am

Terry

That is not possible AFAIK. Can't you use the calendar widget (which is used in the blog demo site)?

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Terry Grossman

Wednesday 07 July 2004 10:14:41 am

I did some searching and apparently these demo's are what you get if you choose the example setups from within the installer wizard. However, as part of the basic tutorial "building an ez website" you are explicitly told not to choose any of the demos, so I've never seen them before! Who knew? ;)

Anyway, I found the blog demo site at http://demo.ezpublish.no/blog and that is exactly the kind of calendar display I would like to do.

But I cannot find docs for the blog demo, its templates, or the widgets used. I searched for demo related info and couldn't find anything usefull. Where is the blog demo discussed or documented?

Thanks for your help

Terry G.

Paul Borgermans

Wednesday 07 July 2004 10:39:17 am

No docs I'am afraid. But study the docs for the toolbar/menu system of 3.4: that's one point of departure, the other is the templates from the blog site (the calendar navigator is actually in the standard templates)

hth

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Terry Grossman

Wednesday 07 July 2004 12:37:18 pm

Hey Paul,

I found the calendar "monthview" template, but I'm unsure how to use it. Could you post the weblog tpl file(s) that displays the calendar? Otherwise I will have to do an entire new install just to grab the file(s).

TIV

T.

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 31 2025 01:22:06
Script start
Timing: Jan 31 2025 01:22:06
Module start 'layout'
Timing: Jan 31 2025 01:22:06
Module start 'content'
Timing: Jan 31 2025 01:22:06
Module end 'content'
Timing: Jan 31 2025 01:22:06
Script end

Main resources:

Total runtime0.0339 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.1328151.2109
Module start 'layout' 0.00620.0052 739.3438220.6875
Module start 'content' 0.01130.0207 960.03131,001.6953
Module end 'content' 0.03200.0018 1,961.726633.9922
Script end 0.0338  1,995.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00339.7371140.0002
Check MTime0.00113.3236140.0001
Mysql Total
Database connection0.00082.328010.0008
Mysqli_queries0.00339.656230.0011
Looping result0.00000.080210.0000
Template Total0.00123.410.0012
Template load0.00092.703010.0009
Template processing0.00020.719710.0002
Override
Cache load0.00071.944610.0007
General
dbfile0.003710.959880.0005
String conversion0.00000.031740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs