Hi,
please excuse my late response
unfortunately i'm not able to do much because of my bad health
but i would like to respond to a few points / questions
First let me say that I have the adapted the event template of Andrew to the needs of my clients … i am not specialized in PHP programming so i think a lot could be possibly better resolved
Now for the comments:
1. Template Position ‘table’ ggppdk wrote: I see that the category_items.php is not using the template position 'table'
The template will have to be updated to use this and or other template positions…
i do not understand why a table position must be present …. for this case
the render-only position is still available / sufficient … i think a table-position would be misleading to the user because the user is expected a output of a table but the category template don’t yous a table-view yet
2. use/show image fieldfgossart wrote: I just try to put image field value (with eventually multiple images as gallery) just before description and I don't see any problem. …
as i said in a previous post
the display of an image (gallery) should be no problem (you have already been made it)
only when ….
e.g. you apply an Multiday event and for the individual dates are different images associates
in the item-view the event fields will be sorted (by php array_multisort) to show the next upcoming date as the first …. but somehow I have problems with images in an array
…. understandable what I mean ….
3. month selector
for this you must be set a few Options in the Template Params > Parameters: LIST LAYOUT
(see attachment)[attachment=0:179xfsha]<!-- ia0 -->event_template_accordion.JPG<!-- ia0 -->[/attachment:179xfsha]
NOTE:
A multiday event actually only appears once as a accordion
which is not correct if the multiday-event go over several months
you have to be modified the following in the gategory-items template to change the behavior
delete line 640
Code:
if ( ($event_catViewLayout == 1) && ($i > $event_startDay) ) continue; // show the event only one time (only in the start month) in the list layout
and put in place of at line 652 after
Code:
$eventMonthKey = $m + $monthAdjust;
following code
Code:
// show the event only one time (in all month) in the list layout
$event_MonthKey[$i] = $eventMonthKey;
if (isset($event_MonthKey[$i - 1])) {
if ( ($event_catViewLayout == 1) && ($event_MonthKey[$i] == $event_MonthKey[$i - 1]) ) continue;
}
4. future and past eventsfgossart wrote: I this month calendar view template, I just like to have some links to browser months/years.
In the template I put some parameters to have x months before and after, but there is no effects.
i have tested this function again now … mmm…
do you have the problems with Multiday events, or one-day events, calendar- or list-view?
possibly see the NOTE before
but what I have noticed
the param
“show EMPTY“ month not working properly for multiday-events fall in multiyears … sorry
i recommend to create one category per year and don’t show empty month
that's what i made in my projects where I used the template … without any Problem
5. Bugsfgossart wrote: I think I have found a first bug in settings Display Events in future (custom value).
Actually the value has no effect, all the futures events are displayed.
In category_items.php i change the < with > on the second check . I think it's copied from before and not correct…...
thanks … that’s right … i think that the
‘&&’ must also be changed in
‘||’ !?
so the right code is
Code:
if ($displayEventsInFuture == 2) {
if (($dateToCheck[1] > ($today[1] + $displayEventsMonthInFutureCustom)) || ($dateToCheck2[1] > ($today[1] + $displayEventsMonthInFutureCustom))) continue;
}
fgossart wrote: another bug ?
Month names ares displayed with bad encoding (février)
In source code it's easyier to use….
have you tested it already - with different languages etc. ?
i'm going to look at you when i'm healthy again
i hope soon
Regards