Share » Forums » Developer » About Agenda 2 Contribution

About Agenda 2 Contribution

About Agenda 2 Contribution

Thursday 09 February 2006 6:06:26 am - 31 replies

Author Message

Pascal France

Thursday 09 February 2006 9:36:49 am

Hi,

This can be done by changing:

171 <h3>{$temp_ts|datetime( custom, '%F %Y' )|upfirst()} events</h3>

and

213 <h3>{$temp_ts|datetime( custom, '%l %d %F %Y' )|upfirst()}</h3>

in agenda2.tpl

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Brian Gambill

Thursday 09 February 2006 10:40:57 am

I did a similar thing to change the 'Today' when the date selected was not today.

213:
{if eq($curr_ts|datetime( custom, '%j'),$temp_ts|datetime( custom, '%j'))}
<h2>Today:</h2>
{else}
<h2>{$temp_ts|datetime( custom, '%M %j')}:</h2>
{/if}

André R.

Monday 13 February 2006 8:12:25 am

I actually made a choice not to include this since you already got that info from the calendar.

And since all the necessary code already where there, and the code is quite understandable now.
I figured if anyone wanted it they could easily implant it.
But I agree that 'this month' and today at least should state 'selected month /day'

Done some other changes to Agenda 2?? Or suggestions?

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Raul Valadez

Thursday 16 February 2006 8:11:05 am

Hi, I download and Install Agenda2, but I'm not sure how to make it works, I think I already have it working, but It doesn't shows links on the events into the calendar, appears without links in "today:" also nothing is show in "this month:", did I miss something? also on my main page doesn't shows the calendar itself, only a text link to the node event, and when I click the link it shows me the calendar without links, and other link events (different nodes) aren't show in the calendar only the description (list), any clue?

Sorry about my english :)

André R.

Thursday 16 February 2006 10:05:38 am

do you have a link to this server or printscrren of this ??

edit: are you sure that you have set the overrides right ??
Seems that you migt have set the calendar on event data types when you should set it up on the folder that contains the events.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Pascal France

Thursday 16 February 2006 2:14:31 pm

Hi,

I don't know if you can read french, but I did a doc how to install and configure Calendar 21:
http://www.linuxorable.net/ez_pascal/index.php/linuxorable/trucs_astuces__1/extensions/mise_en_oeuvre_de_l_agenda_2_1

If this can help you

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

André R.

Friday 17 February 2006 4:46:11 am

Great,
don't understand france, but understands you used xml_block instead of text_block.
And the 'This month' / 'Today' change.

but what are you doing here:

Si vous souhaitez utiliser un identifiant différent pour l'attribut 2, il faudra impérativement modifier l'occurence cotegory des templates agenda2.tpl et agenda2full.tpl
category => identifiant_attribut_2

any other changes ??

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Pascal France

Friday 17 February 2006 6:20:30 am

Hi,

"Si vous souhaitez utiliser un identifiant différent pour l'attribut 2, il faudra impérativement modifier l'occurence cotegory des templates agenda2.tpl et agenda2full.tpl
category => identifiant_attribut_2"

I indicate the changes you have to do in the template if you want to change the name of the attribut.
And this is needed for each attribut

"Toutes les occurences" = "all occurrences"

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Raul Valadez

Friday 17 February 2006 11:27:19 am

Hi guys, thanks for your replys, I'm following the instructions posted by Pascal France, but I can't find the file: menu.ini.append.tpl do I need to create it? I tried the find command but the file can't be found, the folder that I must to create is a folder on the content page? (like menu item?) or it is a class folder into the classes, I tried both, but I can't make it works, in the class I didn't add: TopIdentifierList[]=folder_agenda because not found the file, I only found menu.ini should I try there?

I also use the node of the folder (on the content page node=102) and on classes (node = 3), but only apperas links, the site is: www.reduaz.mx/site the menu is: "eventos" top left, and also appears in the middle of the site "prueba2" and "matemáticas" they are events, but apperars like links, it's a probe site, before I put the graphic design and real info. I've been using ezpublish, but never before I installed an extension, so please forgive me if I bored you, but I don't want to make my own event calendar, I want to explote the power of ezpublish.

André R.

Friday 17 February 2006 1:11:54 pm

seems that agenda2full.tpl is working.
agenda2.tpl should be a override for the Eventos folder.
ie:
[line_Agenda_131]
Source=node/view/full.tpl
MatchFile=full/agenda2.tpl
Subdir=templates
Match[node]=131

where you change 131 with the node number of the Eventos folder.

when it comes to menu.ini file pascal is refering to, i'm cluless.
What do you change that file for pascal ??
and how did you manage to get months in the 2 level of your navigationbar ??

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Pascal France

Sunday 19 February 2006 6:52:19 am

Hi,

Here is my email address:
pascal@linuxorable.net

I think it will be more easy

Maybe, if you have a jabber address:
pascal_07@jabber.fr

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

André R.

Monday 20 February 2006 3:03:51 am

Raul Valadez !!!
Chatted with pascal yesterday, and we think your problem is the same as ha had.
it's quite easy, I soon going to post a small update to Agenda2 to prevent the problem.

the override.ini file is read by ez from bottom to top.
so the [line_agenda_131] override have to be over / on top [line_folder] to override it.

like this:
<?php /* #?ini charset="iso-8859-1"?

[line_Agenda_131]
.....
....
....

[line_folder]
....
...
...
*/ ?>

when this is right you don't need to change the menu.ini file like pascal had to.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Raul Valadez

Monday 20 February 2006 11:46:44 am

Hi guys, thanks a lot :) now it is working, you are right, changing of place the line_agenda_... begun to work, now I just have a question, what can I do to show the calendar into the main page, instead select the "eventos" menu?, do I need to change templates? or there is an easy way?

Pascal France

Tuesday 21 February 2006 3:17:33 am

Hi Paul,

I think you want something like that:
http://www.linuxorable.net/ez_pascal/

So, you have to create a right toolbar and put an override template like this one:
http://www.linuxorable.net/ez_pascal/temp/plain/override/templates/full/calendar2_toolbar

BUT ! there is something missing in my override template in order it works fine: somewhere we have to spécify the number ID of the folder that contains the event articles (for me ID is 103). But I don't know how to do this.

If someone could help you.

Regards

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Tuesday 21 February 2006 4:34:46 am

Hi Raul,

Sorry, in my previous post it's Raul and not Paul ;-)

I found a solution:

27 {def
28 $event_node=103

in the override template for the calendar toolbar.

I think it's an ugly solution but it works (look at my site)

Regards

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

André R.

Tuesday 21 February 2006 4:49:00 am

do the thing that pascal did above:
change node.node_id to the folder with events as described in the readme file for the toolbar.

To fix the width of the calendar try this:

div#toolbar-design td#agenda_calender{ width: 100%; }
div#toolbar-design td#agenda_calender table{width: 98%; }

put that in the bottom of the css file you put the other css styles in.

best
André

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Pascal France

Tuesday 21 February 2006 8:29:04 am

Hi Andre,

What changes should we done to have "previous month" and "next month" links that only change the month of calendar (in the toolbar) without changing the displayed object in the main page ?

Regards

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

André R.

Tuesday 21 February 2006 1:05:06 pm

Just change the $node.node_id occurrences to $module_result.node_id in these lines:

	$url_reload=concat("/content/view/full/",$node.node_id,"/day/",$temp_today,"/month/",$temp_month,"/year/",$temp_year, "/offset/2")
	$url_back=concat("/content/view/full/",  $node.node_id,  "/month/", sub($temp_month, 1), "/year/", $temp_year)
	$url_forward=concat("/content/view/full/",  $node.node_id, "/month/", sum($temp_month, 1), "/year/", $temp_year)
}

{if eq($temp_month, 1)}
	{set $url_back=concat("/content/view/full/",  $node.node_id,"/month/", $temp_month, "/year/", sub($temp_year, 1))}
{elseif eq($temp_month, 12)}
	{set $url_forward=concat("/content/view/full/",  $node.node_id,"/month/", $temp_month, "/year/", sum($temp_year, 1))}
{/if}

Alternatively you can change $node.node_id to the node of your events folder, then people will be redirected to the full calendar.

For more on the differences between $module_result and $node, look here:
http://ez.no/doc/ez_publish/technical_manual/3_6/templates/template_basics

The most important thing to remember is to use $node in override templates and $module_result in the paglayout (this includes the toolbars, heading and so on...)

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Brian Gambill

Thursday 16 March 2006 2:13:56 pm

I have made changes to make the week start on Sunday. Everything works great except the following. I have an event like:

From_Time: March 31 1900
To_Time: April 1 1400

Problem: The event doesn't show up on the March calendar. If I move forward to April, the event shows up on April 1 just fine. Can someone setup a similar event on their "Monday first" setup and see if the same issue appears. Thanks.

André R.

Thursday 16 March 2006 4:37:00 pm

Confirmed, but i'm not sure why events with last day in a month from time is'nt fetched.
Or maybe it is, i'll have to debuge a bit..

What ez version do you have ??
mine is now "3.7.5" aka 3.7.4 final from svn on packing day..

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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

36 542 Users on board!

Forums menu