Zum Inhalt springen

Seminar Manager - Seminare werden nicht angezeigt

Erstellt am 10. April 2007 · 11 Antworten · letzte Antwort am 24. März 2008

Tags: Frage

burnet ·

Hallo,
ich habe die Erweiterungen "seminars", alle nötigen zusätzlichen Erweiterungen installiert und nach dem Handbuch konfiguriert.

Ich gehe davon aus, dass ich die Anpassungen alle richtig gemacht habe. Jedoch erscheinen meine Veranstaltungen nicht.
Ich bekommen nur die Meldung: "Sorry, currently no events could be found."

Im BE habe ich nun unter WEB zusätzlich die Funktion Seminare und Veranstaltungen. Unter Seminare erscheinen die Seminare die ich SysOrdner angelegt habe. In der Funktion Veranstaltungen gibt es 2 Reiter. Anmeldungen und Veranstaltungen. Bei Veranstaltungen erscheint die Meldung: Dieses Submodul ist noch nicht implementiert.

Vielleicht kann mir jemand ein Denkanstoss geben.

Vielen Dank im Voraus.

Gruß /// burnet

elfe111 ·

Hallo burnet,

hast Du im Setup des Templates für die Seminarseite(n) das Typoscript aus der setup.txt der extension?

config.language = de
# make the FE plugin work with sb_accessiblecontent
tt_content.list.20.seminars_pi1 =< plugin.tx_seminars_pi1

plugin.tx_seminars {
    # Do not touch this variable! This is needed for checking whether this static template has been included correctly.
    isStaticTemplateLoaded = 1

    # Set this to 0 if you don't use the registration feature for this site and would like to disable the configuration check for this.
    enableRegistration = 1

    # location of the template file
    templateFile = fileadmin/templates/seminars_pi1.tmpl

    # whether to use formal or informal language
    salutation = informal

    # comma-separated list of section names that shouldn't be displayed in the thank-you e-mail to the user
    hideFieldsInThankYouMail = credit_points

    # whether to use the label "Price" for the standard price (instead of "standard price") in e-mail to the participant
    generalPriceInMail = 0

    # Comma-separated list of section names from the registration that shouldn't be displayed in the notification e-mail to the organizers. These fields are the big blocks in that e-mail, and some are further divided.
    hideFieldsInNotificationMail =

    # comma-separated list of field names from seminars that should be mentioned in the notification e-mail to the organizers (in the "seminardata" section)
    showSeminarFieldsInNotificationMail = title,uid,event_type,date,place,price_regular,price_regular_early,price_special,price_special_early,attendees,vacancies,enough_attendees,is_full

    # comma-separated list of field names from fe_users that should be mentioned in the notification e-mail to the organizers  (in the "feuserdata" section)
    showFeUserFieldsInNotificationMail = username,name,email,address,zip,city,telephone,tx_seminars_phone_mobile

    # comma-separated list of field names from attendances that should be mentioned in the notification e-mail to the organizers  (in the "attendancedata" section)
    showAttendanceFieldsInNotificationMail = price,interests,expectations,background_knowledge,known_from,notes

    # Whether to send the additional notification e-mails to the organizers or not. Additional notification mails are sent if for example an event gets full.
    sendAdditionalNotificationEmails = 1

    # the time format (in strftime format)
    timeFormat = %H:%M

    # the strftime format code to extract the year from a date string
    dateFormatY = %Y

    # the strftime format code to extract the month from a date string
    dateFormatM = %m.

    # the strftime format code to extract the day of month from a date string
    dateFormatD = %d.

    # the strftime format code for the full date
    dateFormatYMD = %d.%m.%Y

    # the strftime format code for the month and day of month
    dateFormatMD = %d.%m.

    # whether date ranges should be shortened when possible
    abbreviateDateRanges = 1

    # ISO3 code of the currency to be used (not checked for validity yet)
    currency = EUR

    # The default event type. This value will be used for events that have no type assigned to them. This value is not checked as any string (even an empty string) is allowed.
    eventType = Workshop

    # whether to also show the time of the registration deadline
    showTimeOfRegistrationDeadline = 0

    # whether to also show the time of the early bird deadline
    showTimeOfEarlyBirdDeadline = 0

    # If there are at least this many vancancies, "enough" is displayed instead of the exact number.
    showVacanciesThreshold = 10


    # The following variables don't have any default values provided.
    # You need to set them yourself for this extension to work correctly.

    # PID of the page (or system folder) where event registrations (attendances) will be stored
    attendancesPID = 181
}

plugin.tx_seminars_pi1 {
    # Do not touch this variable! This is needed for checking whether this static template has been included correctly.
    isStaticTemplateLoaded = 1

    # Set this to 0 if you don't use the registration feature for this site and would like to disable the configuration check for this.
    enableRegistration = 1

    # location of the HTML template file
    templateFile = fileadmin/templates/seminars_pi1.tmpl

    # location of the CSS file (leave empty to include no CSS file)
    cssFile = fileadmin/css/seminars_pi1.css

    # whether to use formal or informal language
    salutation = informal

    # CSS class around the table with the events list view (will be automatically prefixed with "tx-seminars-pi1-"), leave empty to set no CSS class
    class_eventlist = listrow

    # CSS class for the TR with the header row for the events list (will be automatically prefixed with "tx-seminars-pi1-"), leave empty to set no CSS class
    class_headerrow =

    # CSS classes for the TH of the various columns in the events list (will be automatically prefixed with "tx-seminars-pi1-"), leave empty to set no CSS class
    class_headertitle = Seminar
    class_headeruid =
    class_headerevent_type =
    class_headeraccreditation_number =
    class_headercredit_points =
    class_headerspeakers =
    class_headerdate = Datum
    class_headertime =
    class_headerplace = Ort
    class_headerprice_regular = Preis
    class_headerprice_special =
    class_headerorganizers = Organisator
    class_headervacancies = Plätze
    class_headerregistration =
    class_headerlist_registrations =

    # CSS class for the TR for an item row in the events list (will be automatically prefixed with "tx-seminars-pi1-"), leave empty to set no CSS class
    class_itemrow =

    # CSS classes for the TD of the various columns in the events list (will be automatically prefixed with "tx-seminars-pi1-"), leave empty to set no CSS class
    class_listtitle = title
    class_listuid = uid
    class_listevent_type =
    class_listaccreditation_number =
    class_listcredit_points =
    class_listspeakers =
    class_listdate = date
    class_listtime =
    class_listplace =
    class_listprice_regular = price
    class_listprice_special = price
    class_listorganizers =
    class_listregistration =
    class_listlist_registrations =

    # CSS class for the colored square indicating the number of vacancies (will be automatically prefixed with "tx-seminars-pi1-"), leave empty to set no CSS class
    class_square = square

    # CSS classes for the registration page (will be automatically prefixed with "tx-seminars-pi1-"), leave empty to set no CSS class
    class_error = error

    # the time-frame from which events should be displayed in the list view
    timeframeInList = currentAndUpcoming

    # comma-separated list of column names that shouldn't be displayed in the list view, e.g. organizers,price_special
    hideColumns = event_type,accreditation_number,credit_points,time,place,price_special,speakers
    # comma-separated list of field names that shouldn't be displayed in the detail view, e.g. organizers,price_special
    hideFields = credit_points

    # whether the search form should be hidden in list view
    hideSearchForm = 0

    # whether the page browser should be hidden in list view
    hidePageBrowser = 0

    # whether canceled events should be hidden or not
    hideCanceledEvents = 0

    # whether to use the label "Price" as column header for the standard price (instead of "Standard price")
    generalPriceInList = 0
    # whether to use the label "Price" as heading for the standard price (instead of "Standard price") in the detailed view and on the registration page
    generalPriceInSingle = 0

    # whether to omit the date in the list view if it is the same as the previous item's
    omitDateIfSameAsPrevious = 0

    # list of comma-separated names of event fields that should be displayed on the registration page (the order doesn't matter)
    eventFieldsOnRegistrationPage = title,price_regular,price_special,vacancies

    # list of tx_seminars_attendances DB fields to show for the online registration (must not be empty)
    showRegistrationFields = interests,expectations,background_knowledge,known_from,notes

    # whether detailed information for the speakers is shown in the single view
    showSpeakerDetails = 1

    # whether detailed information for the locations is shown in the single view
    showSiteDetails = 1

    # comma-separated list of FEuser fields to show in the list of registrations for an event
    showFeUserFieldsInRegistrationsList = name


    # The following variables don't have any default values provided.
    # You need to set them yourself for this extension to work correctly.

    # Base URL of your TYPO3 site (including the protocol and the trailing slash), e.g. http://www.mytypo3site.net/
    baseURL = 174

    # PID of the page that contains the seminar list
    listPID = 175

    # PID of the page that contains the seminar registration plug-in
    registerPID = 176

    # PID of the page that contains the login form
    loginPID = 177

    # PID of the page that contains the registrations list for participants
    registrationsListPID = 181

    # PID of the page that contains the registrations list for VIPs
    registrationsVipListPID = 181
}


plugin.tx_seminars_pi1.listView {
    # the default sort order in list view (a sort field name)
    orderBy = date

    # whether to order ascending (0) or descending (1)
    descFlag = 0

    # how many results to display per page
    results_at_a_time = 20

    # the number of neighboring pages to list in the page browser
    maxPages = 5
}

plugin.tx_srfeuserregister_pi1 {
    create.evalValues {
        tx_seminars_phone_mobile = atMost[25]
        tx_seminars_matriculation_number = atMost[10]
        tx_seminars_planned_degree = atMost[25]
        tx_seminars_semester = atMost[3]
        tx_seminars_subject = atMost[50]
    }
    edit.evalValues {
        tx_seminars_phone_mobile = atMost[25]
        tx_seminars_matriculation_number = atMost[10]
        tx_seminars_planned_degree = atMost[25]
        tx_seminars_semester = atMost[3]
        tx_seminars_subject = atMost[50]
    }
}
plugin.tx_seminars_pi1.class_listorganizers  = organizers

wobei Du natürlich die PIDs anpassen musst!

Wenn das Plugin auf der Seminarseite installiert ist, sollte Du 2 Karteikarten unter "Plugin Optionen" finden: "Allgemein" und "Template und spezielle Einstellungen" - sind diese denn da? und die Seiten richtig angegeben?

Gruß erstmal
elfe111

elfe111 ·

Hallo nochmals burnet,

mit der Extension kommen auch 2 Templates:
tx_srfeuserregister_pi1_tmpl.tmpl
und
seminars_pi1.tmpl
diese kopierst Du am besten und legst sie in einem Ordner von Deinem fileadmin/..., damit diese nicht bei einem Update der Ext. überschrieben werden.

Auf diese Templates mußt Du dann in den Plugin Optionen unter "Templates und spezielle Einstellungen" verweisen, d.h. Du must ein Inhaltselement Seminar-Manager anlegen (hasst Du ja schon) und dann findest Du dort auch die Plugin Optionen.
Dateiname des CSS und des HTML Template.

Deine Seminarseiten brauchen natürlich ein (Basis)Template und da findet sich dann unter "Include static (from extensions):" die "Seminars (seminars)" und ebenfalls benötigt wird "CSS Styled Content (css_styled_content)" die ab Typo3 4.0 eine System Extension ist aber von der seminars Extension nicht erkannt wird, also kann man diese auch local oder global installieren, dann kommt kein Hinweis durch den Konfigurationsassistenten, den man im Frontend sehen kann (bei Fehlern).

Ins Setup des Templates Deiner Seminarseite gehört dann das Typoscript aus der setup.txt, den Du im Extensionmanager bei der Extension Seminars, dort im Menü "edit files" findest - oder natürlich auch im Repository (www.typo3.org/...) selbst. Dort müssen aber die PIDs und die URL Deiner Seite angepasst werden und der Pfad zur Templatedatei --> das sieht dann dort z.B. so aus:

 # location of the template file
    templateFile = fileadmin/templates/seminars_pi1.tmpl

Dann müssen selbstverständlich auch Seminare angelegt sein und entsprechend der Anleitung auch Ort, Organisator etc. die ja benötigt werden beim Anlegen von Seminaren.

Ich hoffe das war jetzt nicht zu kompliziert oder zu banal und hilft hoffentlich weiter.

Die Seminare sollten damit zumindest im Frontend zu sehen sein, wenn alles andere aus der Anleitung richtig gemacht wurde ;-)

Gruß
elfe111

oliverklee ·

Hi,

bitte nicht den kompletten Inhalt der setup.txt in dein Template einsetzen - das geht viel einfacher mit "Include static (from extensions)". :-) Dann brauchst du nur noch die Werte einzutragen, die für deine Site anders als die Defaults sein sollen bzw. für die es keine sinnvollen Defaultwerte gibt (z.B. die PIDs).

Zu dem Punkt, dass CSS Styled Content nicht erkannt wird: Möglicherweise ist das ein Bug in der Seminars - könntest du kurz posten, welche Fehlermeldung du angezeigt bekommst und mit welcher Version des Seminar-Managers und TYPO3 das auftritt? Interessant ist auch, ob die TemplateVoilà benutzt und ob du CSS Styled Content in dein TS-Template eingebunden hast.

Gruß

Oliver

MacMini ·

@oliverklee
Wo genau kann man die Werte dann abändern? Da ich onetimeaccount nutze, die Leute also keine Accounts erstellen können sollen müsste ich auch das hier noch umsetzen

plugin.tx_seminars.attendancesPID (Wenn Sie das Onlineanmeldungsfeature explizit nicht nutzen möchten, so setzen Sie die Variablen plugin.tx_seminars.enableRegistration und plugin.tx_seminars_pi1.enableRegistration auf 0.)

Ich weiß nur eben nicht genau wie und wo ich das machen kann.

oliverklee ·

Hallo MacMini,

falls du meinst, wie du die TS-Setup-Werte ändern kannst, wenn du "Include static (from template)" benutzt: Du kannst die Werte, die vom Defaul abweichen, per TS Setup setzen. (Das ist nicht spezifisch für seminars und onetimeaccount, sondern für alle Extensions.)

Gruß

Oliver

MacMini ·

Nochmal ich :o
Auch bei mir werden keine Seminare angezeigt. Im BE erhalte ich unter Seminare - SysOrdner die Meldung

The static template is not included. This has the effect that important default values do not get set. ....

Allerdings ist das Template bereits über include static (from extension) eingbunden.

oliverklee ·

Hallo MacMini,

ist das Template auch in dem SysFolder (oder einem Elternordner) eingebunden, in dem die Meldung angezeigt wird? Wenn du die SysFolder mit den Daten außerhalb deines Site-Root hast, ist es wichtig, auch dort das Template einzubinden. (Wenn es nicht eingebunden ist, stimmt das Datumsformat nicht.)

Gruß

Oliver

MacMini ·

Vielen Dank für Deine Geduld 🙂 Daran lag es.

Du kannst mir nicht zufällig noch sagen, ob eine Version Deiner Library (oelib) auch mit einer älteren PHP Version funktioniert 8-) Daran könnte mein Kursverwaltungsvorhaben jetzt noch scheitern.

oliverklee ·

Hi,

für den Seminarmanager < 0.6.0 benötigst du keine oelib, wenn ich das richtig im Kopf habe. Der Seminarmanager 0.5.3 funktioniert noch mit PHP 4. Die oelib bis 0.3.0 funktioniert auch mit PHP 4.

seminars 0.6.0 und oelib 0.4.0 benötigen mindestens PHP 5.1. TYPO3 4.2 wird auch mindestens PHP 5.1 voraussetzen.

PHP 4 ist übrigens nicht mehr supported, d.h. es gibt keine Bugfixes mehr, und für kritische Sicherheitslücken nur noch Fixes bis August 2008. Siehe dazu http://www.php.net/archive/2008.php#2008-01-03-1 und http://gophp5.org/

Wenn dein Kunde also unbedingt auf PHP 4 bleiben will, empfehle ich, dass du dir von ihm das explizite Okay holst, dass er um das Sicherheitsproblem weiß und sich deswegen nicht bei dir beschweren wird.

Gruß

Oliver

MacMini ·

Danke für die Infos. Ich hab ein Update angeordnet. Mal sehen, ob es jetzt funktioniert mit dem anmelden.