NAVIGATION
This is an old revision of the document!
Translate
Added:
Changed: (18.01.2011)
Docu: –
Forum: –
Author: K.Heermann (flip-flop) http://planmatrix.de
CMS Version: >= V1.4.2 r348
Version: V1.2 (30.11.2010)
Update: V1.2a (04.01.2011)
Update: V1.2a filename changed (08.01.2011)
Update: V1.3 several parts expanded (18.01.2011)
Verzeichnis: include/inc_module/mod_calendar/inc/ *
Condition: –
Pleaser enter into a CP HTML or “plain text” this TAG-Set:
{CALENDAR:
items=10
template=calendar_v13.html
lang=de
tag=tag1, tag2
tagmode=OR
date_start=01.01.2011 or TODAY or -15
date_end=31.12.2011 or TODAY or 30
href=index.php?XYZ
WxHxCxQ=150x100x0x80
show_past=1
}
Calendar time window:
is set with date_start and date_end.
The values can be:
show_past=1|0
This value determines whether or not to show past appointments.
The output (show_past=1) only makes sense if either a static time window (date_start= date_start=01/06/2011 and date_start=12/31/2011) or a sliding time window forward to the current date (date_start=-15 and date_start=30) is set.
Z.B. in template/calendar/TemplateName.html
Hinzugefügt TEXTLONG für den Wysiwyg Text und IMAGE_CALENDAR für das kleine Vorschaubild und Originalbild (LightBox).
[TEXTLONG]{TEXTLONG}[/TEXTLONG]
[IMAGE_CALENDAR]{IMAGE_CALENDAR}[/IMAGE_CALENDAR]
Die Ausführung der LightBox wird im Termin durch den Schalter [x] LightBox gesteuert.
[x] Klick vergrößern ist ohne Funktion.
Ist ein Link im Feld URL unterhalb des Bildes gesetzt, wird die LightBox Ausgabe übersteuert.
Ist ein Link im Feld URL unterhalb des Bildes gesetzt ist dieser nur aktiv wenn die LightBox nicht eingeschaltet ist.
Technik: Die Bilder werden über das Verfahren “cmsimage” geladen.
Ergänzt zu Template V1.2:
[ALLDAY] . . . [/ALLDAY] [ALLDAY_ELSE] . . . [/ALLDAY_ELSE]
<!--CALENDAR_HEADER_START//-->
<div class="calendar_all">
<p>Datum heute: <b>{DATE:d.m.Y}</b></p>
<p>Terminausgabe von <b>{TIMEWINDOWSTART:d.m.Y}</b> bis <b>{TIMEWINDOWEND:d.m.Y}</b></p>
<!--CALENDAR_HEADER_END//-->
<div class="date [TODAY]today[/TODAY]"> ..... ..... </div>
mit z.B.
.calendar div.left .date { background-color: lightgrey; ... ... } .calendar div.left .today{ background-color: #D0C2EF; }
Beispiel gesamtes Template:
<!-- calender_v13 //--> <!--CALENDAR_HEADER_START//--> <div class="calendar_all"> <p>Datum heute: <b>{DATE:d.m.Y}</b></p> <p>Terminausgabe von <b>{TIMEWINDOWSTART:d.m.Y}</b> bis <b>{TIMEWINDOWEND:d.m.Y}</b></p> <!--CALENDAR_HEADER_END//--> <!--CALENDAR_ENTRY_START//--> <div class="calendar"> <div class="left"> <div class="date [TODAY]today[/TODAY]"> <p><strong>[ALLDAY]Datum: [/ALLDAY][ALLDAY_ELSE]Startdatum: [/ALLDAY_ELSE]{STARTDATE:d.m.}</strong><strong class="year">{STARTDATE:Y}</strong></p> [ALLDAY_ELSE]<p><strong>Enddatum: {ENDDATE:d.m.}</strong><strong class="year">{ENDDATE:Y}</strong></p>[/ALLDAY_ELSE] </div> </div> <div class="detail"> <div class="image"> [IMAGE_CALENDAR]{IMAGE_CALENDAR}[/IMAGE_CALENDAR] </div> <div class="teaser"> [TITLE]<h2>{TITLE}</h2>[/TITLE] [PLACE]<p class="place">Ort: {PLACE}</p>[/PLACE] [HREF]<div class="other">HREF: {HREF}</div>[/HREF] [URL]<div class="other">AID/Alias/URL: {URL}[TARGET]{TARGET}[/TARGET]</div>[/URL] [TEXT]Einleitungstext: <div class="textlong">{TEXT}</div>[/TEXT] [TEXTLONG]Beschreibung: <div class="textlong">{TEXTLONG}</div>[/TEXTLONG] </div> </div> <div style="clear:both;"><!--nop//--></div> </div> <!--CALENDAR_ENTRY_END//--> <!--CALENDAR_FOOTER_START//--> </div> <!--CALENDAR_FOOTER_END//-->
calendar_v13.zip (9.52 KiB, 164 downloads)
The complete module with all files.
Incl. a small extension in the BE: Month Buttons
<note important>
Installation: The old module in include/inc_module/mod_calendar must completely deleted, or overwrite with this version.
Please do not rename the path of the old version, that does not work.
Please delete or rename the previous file "template/inc_script/frontend_render/init-calendar.php" to "init-calendar.php_" !!
</note>
mod_calendar_v13_all.zip (50.3 KiB, 178 downloads)
— Knut Heermann (flip-flop) 2010/11/30 01:37