ok, here we go:
lib.minical >
lib.minical < plugin.tx_cal_controller
lib.minical {
pages = 77
view {
allowedViews = month
month.monthTemplate = fileadmin/template/cal/minical.html
day.dayViewPid = 75
weekStartDay = Monday
}
}
lib.minicallist >
lib.minicallist < plugin.tx_cal_controller
lib.minicallist {
pages = 77
view {
allowedViews = list
list.listTemplate = fileadmin/template/cal/minicallist.html
list.starttime = now
list.endtime = +12 month
day.dayViewPid = 75
weekStartDay = Monday
}
}
wobei anzumerken ist:
Das verlinken klappt noch nicht so ganz, Mario will das aber heute noch fixen.
Das Template der Listview ist anders, man kann jetzt alle Marker benutzen, die man im phpicalendar_event.tmpl findet.
Das gilt alles für Version 0.14.1
Das Update des Tutorials werde ich vornehmen, wenn ein neues Release mit den gefixten Bugs rauskommt.
happy dating 😉
Danke für die Schnippsel!
Leider bekomme leider nur eine "0" als Output.
Und wenn ich die Marker von "phpicalendar_event.tmpl" benutze werden diese nicht gewrapt ...
Grüsse,
reto
Hier mal mein Listentemplate als Beispiel:
<dl id="calteaser">
<!-- ###SHOWBOTTOMEVENTS### start -->
<!-- ###SHOWBOTTOMEVENTS_ODD### start -->
<dt class="odd">###TITLE###<span class="V9G">###STARTTIME### - ###ENDTIME###</span></dt>
<dd class="odd">###DESCRIPTION###</dd>
<!-- ###SHOWBOTTOMEVENTS_ODD### end -->
<!-- ###SHOWBOTTOMEVENTS_EVEN### start -->
<dt class="even">###TITLE###<span class="V9G">###STARTTIME### - ###ENDTIME###</span></dt>
<dd class="even">###DESCRIPTION###</dd>
<!-- ###SHOWBOTTOMEVENTS_EVEN### end -->
<!-- ###SHOWBOTTOMEVENTS### end -->
</dl>
Wollte soeben mein Beitrag editieren, Du warst aber schneller 😉
Hatte einen Fehler im Template! Wohl schon etwas spät 😉
Vielen Dank
Hallo,
ich verstehe nicht wieso das Einfügen des "minical" mit soviel Mühen verbunden wird. Ich habe einfach der Jahresansicht das template "minical" zugewiesen und kann es so ohne Probleme überall einfügen. Ich muss keine Marker setzen. Der Nachteil ist dass ich auf die Jahresansicht verzichten muss.
Siehe http://www.nobbie4you.de. Ich denke wenn dies der sogenannte "typo3-Kalender" werden soll, kann man doch die Extension dahingehen erweitern, dass man für den "minical" auch die entsprechenden Anweisungen (PHP usw.) schreibt, so dass er eingefügt werden kann wie ich oben beschrieben habe, ohne meinen verwendeten Umweg zu nehmen.
nobbie
nobbie - klar kannst Du das so machen. Als Plugin ist das auch kein Problem, hier gehts mehr um die Anzeige aus TS heraus.
Natürlich wird das ganze immer mehr vereinfacht, aber es ist auch nicht leicht, alle Anforderungen unter einen Hut zu bekommen. Der Kalender ist jetzt schon wesentlich leichter zu bedienen als bei anfänglichen Versionen, und das wird auch weiter so sein 😉
Mir geht es ja mehr um die Termine, und da macht es mehr Sinn eine kleine Liste anzuzeigen. Welche dann auf die Details linkt.
Steffen: konntest Du schon was wegen den Links herausfinden?
Danke und liebe Grüsse,
reto
ja - das kommt, jetzt ist halt Weihnachten und da gehts etwas langsamer, aber nächste Woche gibts da bestimmt was 😉
Hallo Steffen,
wie sieht es aus bzgl. der Links?
Grüße, kaktus
der Bug ist in der neusten SVN-Version behoben
Added fix to link to views on other pages which are not in the allowedViews
🙂
Hallo Steffen,
wenn ich das richtig sehe, sind die in SVN aufgeführten Dateien in meiner Version 14.1 zu modifizieren. Wenn ich aber sehe, wieviel mario dort allein am 02.01.2007 modifziert hat, warte ich wohl lieber auf die neue Version im Repository. Wann wird diese veröffentlicht?
Grüße, kaktus
das ist korrekt - für den Produktivbetrieb sollte man das Release abwarten, zum testen kann man die SVN-Version nutzen.
Wann das Release rauskommt ist schwer zu sagen, das hängt von der Stabilität der derzeitigen Version ab. Es kommen jetzt noch meine Erweiterungen dazu, die u.a. "nested categories" beinhalten (Baum für Kategorien).
Es wird sicherlich im Januar noch ein Release geben.
Ich habe irgendwie immer noch mühe um einen Minikalender einzubinden. Auf meiner Seite wird nur der Marker angezeigt und deshalb vermute ich, dass im Setup des Templates noch etwas fehlt. Muss ich vor der dritten Zeile noch etwas hinzufügen?
Auszug aus dem Setup im Template:
## Calendar Base Mini View
page.10.marks.MINICAL < lib.minical
lib.minical >
lib.minical < plugin.tx_cal_controller
lib.minical {
pages = 52
view {
defaultView = month
month.monthTemplate = fileadmin/dac/templates/cal/monthmini.tmpl
calendar.defaultUid = 52
isStatic = 1
event.eventViewPid = 59
weekStartDay = Monday
}
}
schu mal hier:
#55943
da gehts weiter 😉 da findest Du auch aktuelle Snippets.
sorry, aber irgendwie klappts bei mir immer noch nicht. auf meiner page wird immernoch der marker angezeigt anstatt der kalender. da ich noch nicht lange dabei bin, denke ich es könnte an einem grundlegenden problem liegen.
hier mal mein ganzes setup (zeilen 28-43 ist vom kalender):
# Default PAGE object:
page = PAGE
page.typeNum = 0
page.bodyTag = <body bgcolor="#ffffff" leftmargin="0" marginheight="0" marginwidth="0" topmargin="0">
# page.shortcutIcon = fileadmin/dac/img/faviconbmp_01.ico
page.stylesheet = fileadmin/dac/style_01.css
page.10 = TEMPLATE
page.10 {
template = FILE
template.file = fileadmin/dac/main_templ.html
workOnSubpart = DOKUMENT
marks.INHALT < styles.content.get
marks.PFAD = HMENU
marks.PFAD {
special = rootline
special.range = 0 | -1
1 = TMENU
1 {
NO {
allWrap = |*| / |*| /
ATagParams=class="linknone"
}
}
}
## Calendar Base Mini View
##marks.MINICAL < lib.minical
lib.MINICAL >
lib.MINICAL < plugin.tx_cal_controller
lib.MINICAL {
pages = 52
view {
defaultView = month
allowedViews = month
month.monthTemplate = fileadmin/dac/templates/cal/monthmini.tmpl
calendar.defaultUid = 52
isStatic = 1
event.eventViewPid = 59
weekStartDay = Monday
}
}
marks.DATUM = TEXT
marks.DATUM {
data = date : U
strftime = %R - %d.%m.%Y
}
marks.MENU= HMENU
marks.MENU.entryLevel = 0
marks.MENU.1 = TMENU
marks.MENU.1 {
NO {
allWrap = <tr><td class="navi" height="20">|</td></tr>
ATagParams=class="navi"
beforeImg = fileadmin/dac/img/pfeilchentransg_01.gif
beforeROImg = fileadmin/dac/img/pfeilcheng-blau_01.gif
RO = 1
}
ACT = 1
ACT {
allWrap = <tr><td class="navi_active" height="20">|</td></tr>
ATagParams=class="navi_active"
beforeImg = fileadmin/dac/img/pfeilcheng-blau_01.gif
}
}
marks.MENU.2 = TMENU
marks.MENU.2 {
NO {
allWrap = <tr><td class="navi" height="20"> |</td></tr>
ATagParams=class="navi"
}
ACT = 1
ACT {
allWrap = <tr><td class="navi_active" height="20"> |</td></tr>
ATagParams=class="navi_active"
}
}
}
plugin.tx_asfkusercounter_pi1.textMode = 1
plugin.tx_asfkusercounter_pi1.textMode =
config.spamProtectEmailAddresses = 1
config.spamProtectEmailAddresses_atSubst = (at)
plugin.tx_veguestbook_pi1.email_from_mail = webmaster@faessler.name
plugin.tx_veguestbook_pi1.email_from_name = Webmaster faessler.name
plugin.tx_veguestbook_pi1.templateFile = fileadmin/dac/guestbook_template_01.tmpl
plugin.tx_veguestbook_pi1.limit = 10
plugin.tx_veguestbook_pi1.limit = 10
plugin.tx_veguestbook_pi1.__CSS_DEFAULT_STYLE (
/* example styles */
.tx-guestbook-list-header { background-color: #C5D6E6; color: #000000; font-weight:bold; }
.tx-guestbook-list-row { background-color: #FFFFFF; }
.tx-guestbook-list-rowleft { background-color: #EEEEEE; }
.tx-guestbook-list-entrycomment-title {font-weight: bold; }
.tx-guestbook-list-entrycomment { font-style: italic; }
.tx-guestbook-list-small { font-size: 9px; color: #666666; }
.tx-veguestbook-pi1-browsebox TD { font-size: 9px; color: #666666; }
.tx-veguestbook-pi1-browsebox-strong, .tx-ttnews-browsebox-SCell { font-weight: bold; }
.tx-veguestbook-pi1-browsebox-SCell { background-color: #EEEEEE; }
.tx-guestbook-latest-header { background-color: #C5D6E6; color: #000000; font-weight:bold; }
.tx-guestbook-latest-row { background-color: #FFFFFF; }
.tx-guestbook-latest-small { font-size: 9px; color: #666666; }
.tx-guestbook-form-inputfield-med { border-style: solid; border-width: 1pt; border-color:#C5D6E6; font-size:12; color:#333333; width:100; height:20; }
.tx-guestbook-form-inputfield-big { border-style: solid; border-width: 1pt; border-color:#C5D6E6; font-size:12; color:#333333; width:150; height:20; }
.tx-guestbook-form-textarea { border-style: solid; border-width: 1pt; border-color:#C5D6E6; font-size:12; color:#333333; width:200; }
.tx-guestbook-form-obligationfield { color: #CC0000; }
.tx-guestbook-form-error { color: #CC0000; }
)
plugin.tx_veguestbook_pi1.emoticons.active = 1
plugin.tx_srfreecap_pi1.imageHeight = 20
plugin.tx_srfreecap_pi1.imageHeight = 90
plugin.tx_srfreecap_pi1.textColor = 2
plugin.tx_srfreecap_pi1.textColor = 0
plugin.tx_srfreecap_pi1.textColor = black
plugin.tx_srfreecap_pi1.textColor = 10
plugin.tx_srfreecap_pi1.textColor = 1
plugin.tx_srfreecap_pi2._CSS_DEFAULT_STYLE = .tx-srfreecap-pi2-image { margin-left: 0em; } .tx-srfreecap-pi2-cant-read { font-size: .9em; color:#35006d; } .tx-srfreecap-pi2-cant-read a:link { background-color:transparent; font-weight:bold; text-decoration:none; }
plugin.tx_veguestbook_pi1.pageBrowser.tableParams = cellpadding="0" cellspacing="0" border="0"
plugin.tx_veguestbook_pi1._CSS_DEFAULT_STYLE =
plugin.tx_veguestbook_pi1.__CSS_DEFAULT_STYLE =
plugin.tx_veguestbook_pi1.sortingDirection = asc
plugin.tx_veguestbook_pi1.sortingDirection = asc
plugin.tx_veguestbook_pi1.sortingDirection = desc
plugin.tx_veguestbook_pi1.datetime_stdWrap.strftime = %A, %d. %m. %Y %H:%M
plugin.tx_veguestbook_pi1.date_stdWrap.strftime = %d.%m.%Y
plugin.tx_veguestbook_pi1.datetime_stdWrap.strftime = %A, %d.%m.%Y %H:%M
plugin.tx_cal_controller.calendarName = Events
## Enable apache-style logging into a file
config.stat = 1
config.stat_apache = 1
config.stat_apache_logfile = log.txt
config.stat_mysql = 0
hab ich irgendwas falsch eingebunden?
vielen dank für die hilfe!!
christian
hm - ich will nicht alles doppelt schreiben. Im angegebenen Link habe ich gepostet, wie der Minical funktioniert, bitte übernehm das Snippet.
ist ja nicht so, dass ich nichts ausprobiert hätte... hab jetzt nochmals das von dir ins setup kopiert, doch gebracht hats leider nichts. auf meiner seite wird nach wie vor nur der marker angezeigt. mein marker heisst MINICAL, deshalb hab ich lib.minical dann auch in lib.MINICAL umbenannt (ist doch richtig so?)
ok, Du hast einen elementaren Fehler drin.
setz lib.minical mal an den Anfang Deines TS und dann unter
page.10 {...
marks.MINICAL < lib.minical
genial!!! tausend dank!!! jetzt klappts!!
Hallo,
ich bekomme es irgendwie auch nicht hin... #angry# #angry# #angry#
Kann mal jemand über mein Setup schauen:
lib.stdheader.10.stdWrap.wrap=
tt_content.stdWrap.dataWrap = <A name="{field:uid}"></a>
config.stat = 1
config.stat_apache = 1
config.stat_apache_logfile =statistik.log
lib.minical >
lib.minical < plugin.tx_cal_controller
lib.minical {
pages = 10
view {
defaultView = month
month.monthTemplate = fileadmin/templates/cal/monthmini.tmpl
calendar.defaultUid = 10
day.dayViewPid = 29/TAGESANSICHT
weekStartDay = Sunday
}
}
lib.minicallist >
lib.minicallist < plugin.tx_cal_controller
lib.minicallist {
pages = 10
view {
defaultView = list
list.listTemplate = fileadmin/templates/cal/monthteaser.tmpl
calendar.defaultUid = 10
isStatic = 1
event.eventViewPid = PID_DER_KALENDERSEITE/EVENTANSICHT
weekStartDay = Sunday
}
}
[usergroup = *]
temp.10 < tt_content.login
[else]
temp.10 = TEXT
temp.10.data = TSFE : id
temp.10.wrap (
<form action="index.php?id=2" method="post">
<table width=200 border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<input name="user" type="text" id="user" title="Benutzername" onfocus="if (this.value==this.defaultValue) this.value=''" value="" size="10"> Benutzer
</td>
</tr>
<tr>
<td>
<input name="pass" type="password" id="pass" title="Passwort" onfocus="if (this.value==this.defaultValue) this.value=''" value="" size="10"> Kennwort
<input name="image" type="Submit" title="Login" value="Login" src="fileadmin/.../lock.gif" alt="Login" align="absbottom" width="18" height="18" border="0">
</td>
<input type="hidden" name="redirect_url" value="index.php?id= | " />
</tr>
</table>
<input type="hidden" name="logintype" value="login" > <input type="hidden" name="pid" value="13" >
</form>
)
[global]
###Hier ein Kommentar###
page = PAGE
page.typeNum = 0
page.stylesheet = fileadmin/main.css
###page.bodyTag = <body background="Images/tile_bkgrnd.gif">
page.headerData.10 = TEXT
page.headerData.10.value = <script type="text/javascript" src="fileadmin/link_fade.js" language="JavaScript"></script>
page.10 = TEMPLATE
page.10 {
template = FILE
template.file = fileadmin/tmpl-normal.html
workOnSubpart = DOCUMENT_BODY
marks.LOGIN < temp.10
marks.MINICAL < lib.minical
marks.COUNT < plugin.gsi_whoisonline
subparts.CONTENT < styles.content.get
subparts.CONTENT_RIGHT < styles.content.getRight
subparts.CONTENT_LEFT < styles.content.getLeft
subparts.CONTENT_BORDER < styles.content.getBorder
subparts.MENU = HMENU
subparts.MENU.minItems=3
### subparts.MENU.maxItems=4
subparts.MENU.1 = TMENU
subparts.MENU.1.NO {
allWrap=|*|<td width="120" height="20" bgcolor="#999999" align="center">|</td>||<td width="120" height="20" bgcolor="#cccccc" align="center">|</td>|*|
}
subparts.MENU_LEVEL1 = HMENU
subparts.MENU_LEVEL1.entryLevel = 1
subparts.MENU_LEVEL1.1 = TMENU
subparts.MENU_LEVEL1.1.NO {
allWrap = <tr><td height="20" bgcolor="#999999"> | </td></tr><tr height="5"><td></td></tr>
}
subparts.MENU_LEVEL1.2 = TMENU
subparts.MENU_LEVEL1.2.NO {
allWrap = <tr><td height="20" width="100" bgcolor="#cccccc"> | </td></tr><tr height="5"><td></td></tr>
before =
beforeImg = media/bullets/bullet1_n.gif
beforeROImg = media/bullets/fwd.gif
RO = 1
}
subparts.MENU_LEVEL1.3 = TMENU
subparts.MENU_LEVEL1.3.NO {
allWrap = <tr><td height="20" width="100" bgcolor="#FFFFFF"> | </td></tr><tr height="5"><td></td></tr>
before =
beforeImg = media/bullets/bullet1_n.gif
beforeROImg = media/bullets/fwd.gif
RO = 1
}
subparts.MENU_LEVEL1.4 = TMENU
subparts.MENU_LEVEL1.4.NO {
allWrap = <tr><td height="20" width="100" bgcolor="#FFFFFF"> | </td></tr><tr height="5"><td></td></tr>
before =
beforeImg = media/bullets/bullet1_n.gif
beforeROImg = media/bullets/fwd.gif
RO = 1
}
}
# Deutsche Datumsanzeige im Newsmodul
config.sys_language_uid = 0
config.language = de
config.locale_all = de_DE
plugin.tt_news.latestLimit = 2
plugin.tt_news.displayList {
age_stdWrap.age = 1
date_stdWrap.strftime = %d.%m.%Y
time_stdWrap.strftime = %H:%M Uhr
}
plugin.tt_news.displayLatest {
age_stdWrap.age = 1
date_stdWrap.strftime = %d.%m.%Y
time_stdWrap.strftime = %H:%M Uhr
}
tt_news = < plugin.tt_news
Und wie binde ich es richtig ein.
Kann ich Standard HTML zum einbinden verwenden???