Veranstaltungskalender gbevents: Unterschied zwischen den Versionen

Aus Wikizone
Wechseln zu: Navigation, Suche
 
Zeile 1: Zeile 1:
 +
== Allgemein ==
 
TYPO3 Extension zur Verwaltung von Veranstaltungen (Events)
 
TYPO3 Extension zur Verwaltung von Veranstaltungen (Events)
 +
 +
* Eingabe kann über ein Online Formular im Frontend realisiert werden
 +
* Freigabemodul im Backend
 +
* Listenansicht und Suchfunktion
 +
 +
== Technische Details ==
 +
* 2 Plugins: pi1 ist für das Eingabeformular zuständig, pi2 ist für die Ausgabe Zuständig
 +
* 1 Modul für die Freigabe
  
 
== TypoScript ==
 
== TypoScript ==

Version vom 15. Februar 2011, 18:48 Uhr

Allgemein

TYPO3 Extension zur Verwaltung von Veranstaltungen (Events)

  • Eingabe kann über ein Online Formular im Frontend realisiert werden
  • Freigabemodul im Backend
  • Listenansicht und Suchfunktion

Technische Details

  • 2 Plugins: pi1 ist für das Eingabeformular zuständig, pi2 ist für die Ausgabe Zuständig
  • 1 Modul für die Freigabe

TypoScript

# ExtJS
page.includeCSS.gbevents1 = EXT:gb_events/res/gbevents.css
page.includeCSS.gbevents2 = EXT:gb_events/res/jquery/css/smoothness/jquery-ui-1.7.2.custom.css

// Prototype is included in Typo3
//page.includeJS.proto = typo3/contrib/prototype/prototype.js
# jquery
page.includeJS.gbevents1 = EXT:gb_events/res/jquery/jquery-1.3.2.min.js
page.includeJS.gbevents2 = EXT:gb_events/res/jquery/ui/jquery-ui-1.7.2.custom.js
// validation plugin
page.includeJS.gbevents3 = EXT:gb_events/res/jquery/jquery.validate.js

//page.includeJS.gbevents5 = EXT:gb_events/eid/ajax.js

# Input Form
plugin.tx_gbevents_pi1 {
    pidList = 0
    pidSingle = 0
    recursive = 1
    templateFile = EXT:gb_events/res/template.html
    dateFormat = d.m.Y #not used
	storagePID = 78
}

# List, Single View
plugin.tx_gbevents_pi2 {
   pidList = 0
   pidSingle = 0
   recursive = 1
   templateFile = EXT:gb_events/res/template.html
   dateFormat = d.m.Y
	storagePID = 78
	# resPath = not used
	# Values for Page Browser
	results_at_a_time = 12
   maxPages = 10
}
plugin.tx_gbevents_pi2.listView {
	results_at_a_time = 5
	maxPages =10
   // c means cut
	teaserImg.width = 96c
	teaserImg.height = 96c
}
plugin.tx_gbevents_pi2.singleView {
	singleImg.maxWidth = 320m
   singleImg.maxHeight = 200m
}

# Uploads Configuration
plugin.tx_gbevents_pi1{
    checkMime = 0
    mimeInclude = image/gif,image/jpeg,application/x-zip-compressed
    mimeExclude = application/octet-stream
    checkExt = 1
    extExclude = exe,php,php3
    extInclude = gif,jpg,jpeg,png,GIF,JPG,JPEG
    maxsize = 500000
    path = uploads/tx_gbevents/
    FEuserHomePath=1
    FEuserHomePath.field = username
    noOverwrite = 1
    fileMode = 0755
    _CSS_DEFAULT_STYLE (

    )
    _LOCAL_LANG.default {

    }
    _DEFAULT_PI_VARS {

    }

    #    This cObject must contain the upload-form
    #    The upload form must at least contain the following:
    #    a) an input field of type "file" and name "tx_gbevents_pi1[file]"
    #    b) an input field of type "submit" and name "tx_gbevents_pi1[do_upload]"
    #    If you insert the marker ###STATUS### it will be replaced by any status messages that was generated
    #    following an upload
    #

    uploadformcObject = TEXT
    uploadformcObject.insertData = 1
    uploadformcObject.value(

        ###STATUS###

          <input type="hidden" name="MAX_FILE_SIZE" value="500000">
          <input name="tx_gbevents_pi1[file]" type="file"><br>
          <input type="submit" name="tx_gbevents_pi1[do_upload]" value="hochladen"><br/>
    )


    #    These are the status messages that can be displayed after an upload request has been processed

    message{

        #File already exists on server
        exist = TEXT
        exist.value = <p>Datei existiert bereits.</p>
        exist.insertData = 1


        #File too big
        toobig = TEXT
        toobig.value = <p>Datei ist zu gross.</p>
        toobig.insertData = 1

        #Mime type not allowed
        mimenotallowed = TEXT
        mimenotallowed.value = <p>MIME Dateityp nicht erlaubt.</p>
        mimenotallowed.insertData = 1

        #File extension not allowed
        extensionnotallowed = TEXT
        extensionnotallowed.value = <p>Dateierweiterung nicht erlaubt</p>
        extensionnotallowed.insertData = 1

        #Upload was succesfull
        uploadsuccesfull = TEXT
        uploadsuccesfull.value = <p>Upload erfolgreich.</p>
        uploadsuccesfull.insertData = 1

        #File was only partially uploaded
        partial = TEXT
        partial.value = <p>Die Datei konnte nur teilweise hochgeladen werden.</p>
        partial.insertData = 1

        #No file was uploaded
        nofile = TEXT
        nofile.value = <p>Es wurde keine Datei hochgeladen.</p>
        nofile.insertData = 1

        #Unknown error
        unknown = TEXT
        unknown.value = <p>Unbekannter Fehler beim Upload.</p>
        unknown.insertData = 1
    }
}