Ergebnis 1 bis 8 von 8

Thema: (solved) Help ! Displaying location or reason in event list ?

  1. #1
    Contao-Nutzer
    Registriert seit
    07.11.2012.
    Beiträge
    106

    Frage (solved) Help ! Displaying location or reason in event list ?

    Hi everyone,

    Sorry, I don't speak nor read german. So, i couldn't find if the subject was discussed (it is not in english forum).

    For a festival where same event will occur many times at different date/hour and in different places.
    I'm creating my event with first date, hour and location datas.
    For other dates, I'm using Recurrence settings (irregular) indicating the location in Reason (grund) field.

    When displaying my event list (sorted by day) how can i display the location if this is the first date or the reason if this is one irregular recurring date ?

    Thanks for help.
    Geändert von Charled (04.04.2018 um 12:20 Uhr) Grund: solved

  2. #2
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.067
    Partner-ID
    10107

    Standard

    There is no "reason" field (by default). But it should not be a problem to output any field in your template.

  3. #3
    Contao-Nutzer
    Registriert seit
    07.11.2012.
    Beiträge
    106

    Standard

    Hi Spooky,

    I suppose there is no problem for that but I don't find how as I don't find the field.

    In Event, you got a field Location for the… location. SoI can dispaly it with <?php $this->location ?>
    event-1st-date.png

    calendar_extended let me add irregular dates (start, end, hour) with a "reason" (grund in german) which is a simple text field.
    event-ext_cal_iregular-dates.png

    But I don't find it in any table. As I don't find any specific table for cal_extended. So I don't know how to add this field in my event list

  4. #4
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.067
    Partner-ID
    10107

    Standard

    Oh, I didn't realize this is the calendar_extended subforum .

  5. #5
    Contao-Nutzer
    Registriert seit
    07.11.2012.
    Beiträge
    106

    Standard

    Aargh ;-)

    I know this is not the right forum…but another way to solve my problem could be to add an image to an article header. is it possible (I installed teaserimages but it doesn't seem to work).

  6. #6
    Contao-Urgestein Avatar von folkfreund
    Registriert seit
    09.04.2010.
    Beiträge
    1.928

    Standard

    Zitat Zitat von Charled Beitrag anzeigen
    Aargh ;-)

    I know this is not the right forum…
    This IS the right forum, but we do not always read the header .

    Are you familiar with modifying the template?
    You could add
    PHP-Code:
    <pre><?php $this->showTemplateVars(); ?></pre>
    to see all variables. Maybe you can find the reason field.

    Please do this in your local installation or on a protected test page, because the output might show the DB credentials and other things you don't want to publish...

  7. #7
    Contao-Nutzer
    Registriert seit
    07.11.2012.
    Beiträge
    106

    Standard

    I got it !! The files is called "moveReason".
    Now, I can go and eat and after finish my template ;-)
    Thanks a lot @folkfreund

  8. #8
    Contao-Urgestein Avatar von folkfreund
    Registriert seit
    09.04.2010.
    Beiträge
    1.928

    Standard

    Enjoy your meal!

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Lesezeichen

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •