[TYPO3-calendar] cal event template description not shown
Averlon GmbH (in Gründung)
info at averlon.net
Sun Apr 10 09:41:30 CEST 2016
Hi Mario,
css_styled_content is already included in the template.
Anyhow. I made a fault to activate Fluid for language L=0 but not for L=1.
Does not make sense. I corrected this.
Still, without fluid, the content of the description and the image is not
shown.
When working with fluid template I would need to identify the language to
change the format settings.
I have tried in list.html such construction (just for testing):
<f:debug inline="true">{data}</f:debug>
<div class="list-view">
<f:switch expression="{sysLanguageUid}">
<f:case value="0">Das ist die Deutsche Seite Test template
av_list.html</f:case>
<f:case value="1">Das ist die Englische Seite Test template
av_list.html</f:case>
<f:case default="1">Das ist die Default Seite Test template
av_list.html</f:case>
</f:switch>
<f:if condition="{sysLanguageUid} == 0">
Das ist die Deutsche Seite 2. Test template av_list.html
</f:if>
<f:if condition="{sysLanguageUid} == 1">
Das ist die Englische Seite 2. Test template av_list.html
</f:if>
.....
I would then like to run a "switch" or "if" statement and set the formatting
accordingly (e.g. <f:format.date format="%d %B
%Y">{listView.starttime.time}</f:format.date> for DE)
But the debug shows an empty result.
I am not very good in fluid. And I am no programmer. I would need to have a
hint how to get the Language switch and work in fluid with it.
I would appreciate someone can show me that.
Mit freundlichen Grüßen / Kind Regards
Karl-Heinz
-----Ursprüngliche Nachricht-----
Von: typo3-project-calendar-bounces at lists.typo3.org
[mailto:typo3-project-calendar-bounces at lists.typo3.org] Im Auftrag von Mario
Matzulla
Gesendet: Samstag, 9. April 2016 21:06
An: typo3-project-calendar at lists.typo3.org
Betreff: Re: [TYPO3-calendar] cal event template description not shown
Hi Karl-Heinz,
Am 09.04.16 um 09:58 schrieb Averlon GmbH (in Gründung):
> Hi all there,
>
> Trying to customize cal I have found the template which shows the cal
> single event.
>
>
>
> The file is called event_model.tmpl, if I am not wrong on this.
>
>
>
> The template itself seems to be called
>
> <!--###TEMPLATE_PHPICALENDAR_EVENT### begin -->
>
>
>
> The template shows:
>
>
>
> <!--phpicalendar_event.tmpl-->
>
> <h1>###HEADING###</h1>
>
> ###EDIT_LINK###
>
>
>
> ###TITLE###
>
> ###STARTDATE###
>
> ###ENDDATE###
>
> ###STARTTIME###
>
> ###ENDTIME###
>
> ###STATUS### ###PRIORITY### ###COMPLETED###
>
> ###ORGANIZER###
>
> ###LOCATION###
>
> ###DESCRIPTION###
>
> ###IMAGE###
>
> ###ATTACHMENT###
>
> ###ATTENDEE###
>
>
>
>
..
>
>
>
> Where I would expect the description of the event and the image to be
shown.
>
>
>
> The result is:
>
>
>
> Titel: test
>
> Startdatum: April 06
>
> Startzeit: 10:00 am
>
> Endzeit: 11:00 am
>
> Organisator: test orgainzer
>
> Ort: test location
>
>
>
> No description and no image (attachments and attendees are not set).
>
>
>
> Could anyone please give me a hint what I could do to get the
> description shown?
The marker correspond to the typoscript definition with the same name in the
view. Have allok at description and you will see, that it is related to
tt_content, especially the css_styled_content defined one. So in order to
get the image and description shown, you can add the css_styled_content
(typoscript definition) or you have to rewrite the according typoscript for
your needs.
>
>
>
> TS is pretty much empty, means standard, where ever I can say it is
> standard with this large list of TS settings for cal.
>
>
>
> In addition I would be interested to know where I can set a German day
> and time format.
>
>
>
> I already have set in setup
>
>
>
> [globalVar = GP:L = 0]
>
> plugin.tx_cal_controller {
>
> view {
>
> week {
>
> dateFormatWeekList =
> %a, %d.%m
>
> timeFormatDay = %H:%M
>
> timeFormatWeek = %H:%M
>
> }
>
> day {
>
> dateFormatWeekList =
> %A, %d.%b
>
> dateFormatDay = %a,
> %d.%b
>
> timeFormatDay = %H:%M
>
> displayDate.strftime =
> %B %d.%m.%Y
>
> }
>
> }
>
> activateFluid = 1
>
> dateParserConf.USmode = 1
>
> dateConfig.dayPosition = 0
>
> dateConfig.monthPosition = 1
>
> dateConfig.yearPosition = 2
>
> dateConfig.splitSymbol = .
>
> }
>
> [global]
>
>
>
> Which for most views does the trick. Not for the event view.
The format is set inside the event.html.
Regards,
Mario
>
>
>
>
>
> Typo3: 7.6.4
>
> Cal: 1.10.3
>
>
>
> Mit freundlichen Grüßen / Kind Regards
>
> Karl-Heinz
>
>
>
_______________________________________________
TYPO3-project-calendar mailing list
TYPO3-project-calendar at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-calendar
More information about the TYPO3-project-calendar
mailing list