NAVIGATION
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)
Folder: 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_en.html
lang=de
tag=tag1, tag2
tagmode=OR
date_start=01.01.2011 or 01.01.2011 12:33 or TODAY or 0 or -15
date_end=31.12.2011 or 31.12.2011 14:00 or TODAY or 0 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
Added TEXTLONG for the Wysiwyg Text and IMAGE_CALENDAR for the little Thumbnail and original image (LightBox).
[TEXTLONG]{TEXTLONG}[/TEXTLONG]
[IMAGE_CALENDAR]{IMAGE_CALENDAR}[/IMAGE_CALENDAR]
The execution of the LightBox is controlled by the switch [x] LightBox.
[x] click zoom without function.
If a link is set in the URL box below the image it is only active if the lightbox is not turned on.
Technology: The images are loaded with the process “cmsimage”.
Adds to Template V1.2:
[ALLDAY] . . . [/ALLDAY] [ALLDAY_ELSE] . . . [/ALLDAY_ELSE]
<!--CALENDAR_HEADER_START//-->
<div class="calendar_all">
<p>Date Today: <b>{DATE:d.m.Y}</b></p>
<p>The issue date of <b>{TIMEWINDOWSTART:d.m.Y}</b> to <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; }
Example entire template:
<!-- calender_v13 //--> <!--CALENDAR_HEADER_START//--> <div class="calendar_all"> <p>Date Today: <b>{DATE:d.m.Y}</b></p> <p>The issue date of <b>{TIMEWINDOWSTART:d.m.Y}</b> to <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]Date: [/ALLDAY][ALLDAY_ELSE]Start Date: [/ALLDAY_ELSE]{STARTDATE:d.m.}</strong><strong class="year">{STARTDATE:Y}</strong></p> [ALLDAY_ELSE]<p><strong>End Date: {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">Place: {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]Teaser text: <div class="textlong">{TEXT}</div>[/TEXT] [TEXTLONG]Description: <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//-->
The complete module with all files.
Incl. a small extension in the BE: Month Buttons
— Knut Heermann (flip-flop) 2010/11/30 01:37