Ergebnis 1 bis 4 von 4

Thema: Pagination in Eventliste nicht sichtbar

  1. #1
    Contao-Fan
    Registriert seit
    25.10.2009.
    Beiträge
    254

    Standard [gelöst] Pagination in Eventliste nicht sichtbar

    Hallo,

    derzeit vermisse ich die Pagination Links für eine Eventliste. Hier werden Events der vorrausliegenden 6 Monate eingeblendet. Zeitweise sah ich die Links. Nach einigen Änderungen später, waren sie aber leider verschwunden.

    event_full.tpl:

    PHP-Code:
    <div class="event block<?php echo $this->class?>">

    <p class="info"><strong><?php echo $this->title?></strong><br />Am <?php echo /*$this->parseDate("d. F Y", $this->timestamp)*/
                                                                                      
    $this->parseDate("d. F Y"strtotime($this->date)); ?></p>
    <?php /*if ($this->recurring): ?>

    <p class="recurring"><?php echo $this->recurring; if ($this->until): ?> <?php echo $this->until; endif; ?>.</p>
    <?php endif;*/ 
    ?>

    <div class="ce_text">
    <?php if (!$this->addBefore): ?>

    <?php echo $this->details?>
    <?php 
    endif; ?>
    <?php 
    if ($this->addImage): ?>

    <div class="image_container<?php echo $this->floatClass?>"<?php if ($this->margin || $this->float): ?> style="<?php echo trim($this->margin $this->float); ?>"<?php endif; ?>>
    <?php if ($this->href): ?>
    <a href="<?php echo $this->href?>"<?php echo $this->attributes?> title="<?php echo $this->alt?>">
    <?php endif; ?>
    <img src="<?php echo $this->src?>"<?php echo $this->imgSize?> alt="<?php echo $this->alt?>" />
    <?php if ($this->href): ?>
    </a>
    <?php endif; ?>
    <?php 
    if ($this->caption): ?>
    <div class="caption"><?php echo $this->caption?></div>
    <?php endif; ?>
    </div>
    <?php endif; ?>
    <?php 
    if ($this->addBefore): ?>

    <?php echo $this->details?>
    <?php 
    endif; ?>

    </div>
    <?php if ($this->enclosure): ?>

    <div class="enclosure">
    <?php foreach ($this->enclosure as $enclosure): ?>
    <p><img src="<?php echo $enclosure['icon']; ?>" width="18" height="18" alt="<?php echo $enclosure['title']; ?>" class="mime_icon" /> <a href="<?php echo $enclosure['href']; ?>" title="<?php echo $enclosure['title']; ?>"><?php echo $enclosure['link']; ?> <span class="size">(<?php echo $enclosure['filesize']; ?>)</span></a></p>
    <?php endforeach; ?>
    </div>
    <?php endif; ?>

    </div>

    <?php echo $this->pagination?>
    15.04.2011 14:18 Uhr aktualisert



    Ehemals modifizierte pagination.tpl:

    PHP-Code:
    <!-- indexer::stop -->
    <div class="pagination block">
      <p>
        <?php echo $this->total?>
      </p>
      
      <ul>
        <?php /* if ($this->hasFirst): */ ?>  
        <li class="first">
        <a href="<?php echo $this->first['href']; ?>" class="first" title="
          <?php echo $this->first['title']; ?>">
          <?php echo $this->first['link']; ?></a>
        </li>
        <?php /* endif; */ ?>
        
        
        <?php /* if ($this->hasPrevious): */ ?>  
        <li class="previous">
        <a href="<?php echo $this->previous['href']; ?>" class="previous" title="
          <?php echo $this->previous['title']; ?>">
          <?php echo $this->previous['link']; ?></a>
        </li>
        <?php /* endif; */ ?>  
        
        
        <?php echo $this->items?>  
        
        
        <?php /* if ($this->hasNext): */ ?>   
        <li class="next">
        <a href="<?php echo $this->next['href']; ?>" class="next" title="
          <?php echo $this->next['title']; ?>">
          <?php echo $this->next['link']; ?></a>
        </li>
        <?php /* endif; */ ?>
        
        
        <?php /* if ($this->hasLast): */ ?>  
        <li class="last">
        <a href="<?php echo $this->last['href']; ?>" class="last" title="
          <?php echo $this->last['title']; ?>">
          <?php echo $this->last['link']; ?></a>
        </li>
        <?php /* endif; */ ?>
      </ul>
      
    </div>
    <!-- indexer::continue -->

    Würde mich für einen Tipp über eine Problemlösung sehr freuen
    Geändert von arnoldB (15.04.2011 um 14:13 Uhr)
    Chuck Norris doesn’t use web standards as the web will conform to him...

  2. #2
    Administratorin Avatar von lucina
    Registriert seit
    19.06.2009.
    Ort
    Kiel (DE)
    Beiträge
    7.336
    Partner-ID
    152
    User beschenken
    Wunschliste
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Wenn Du eine Paginierung möchtest, dann sollte auch
    Code:
    <?php echo $this->pagination; ?>
    drinstehen ... ;-)

    Und ich weiß jetzt gar nicht, ob 'event_full.tpl' das richtige Template ist. Lass doch mal die variablen ausgeben, dann siehst Du das auch.

    Carolina.
    Geändert von lucina (14.04.2011 um 18:12 Uhr)

  3. #3
    Contao-Fan
    Registriert seit
    25.10.2009.
    Beiträge
    254

    Standard

    Seltsamerweise werden die Links generiert (im Quelltext sichtbar), nur sind die Links nicht sichtbar. Ich sehe jetzt aber nicht heraus das die via CSS ausgeblendet sind.

    Die Pagination als solche funktioniert auch (?page=3 der URI angehängt).


    Verfügbare Variablen in event_full.tpl:

    Code:
    Array
    (
        [id] => 1
        [pid] => 2
        [tstamp] => 1302798370
        [title] => <TITLE>
        [alias] => <ALIAS>
        [author] => Administration
        [addTime] => 
        [startTime] => 1302732000
        [endTime] => 1302818399
        [startDate] => 1302732000
        [endDate] => 
        [teaser] => 
        [details] => 
    
    <DETAILSTEXT>
    
    
        [addImage] => 
        [singleSRC] => 
        [alt] => 
        [size] => 
        [imagemargin] => 
        [imageUrl] => 
        [fullsize] => 
        [caption] => 
        [floating] => 
        [recurring] => 1
        [repeatEach] => a:2:{s:4:"unit";s:4:"days";s:5:"value";s:2:"14";}
        [repeatEnd] => 1302818399
        [recurrences] => 0
        [addEnclosure] => 
        [enclosure] => Array
            (
            )
    
        [source] => default
        [jumpTo] => 0
        [articleId] => 0
        [url] => 
        [target] => 
        [cssClass] => 
        [noComments] => 
        [published] => 1
        [start] => 1302732000
        [stop] => 
        [sorting] => 256
        [videobox_addvideo] => 
        [videobox_video] => 0
        [tags] => 
        [calendar] => Temine
        [time] => 
        [date] => 14.04.2011
        [day] => Donnerstag
        [month] => April
        [parent] => 2
        [link] => 
        [href] => 
        [class] => 
        [end] => 1302818399
        [firstDay] => Donnerstag
        [firstDate] => 14.04.2011
        [newMonth] => 1
        [header] => 1
        [classHeader] =>  even first
        [classList] =>  even first last cal_2
        [classUpcoming] =>  even first cal_2
        [readMore] => Den Artikel lesen: XYZ
        [more] => Weiterlesen …
        [span] => 
    )

    Edit: Ist die Pagination somit nur über das Modul "Eventliste-Menü" möglich? Die Paginierung funktioniert bei der Nachrichtenliste dagegen fehlerfrei.
    Geändert von arnoldB (14.04.2011 um 18:35 Uhr)
    Chuck Norris doesn’t use web standards as the web will conform to him...

  4. #4
    Contao-Fan
    Registriert seit
    25.10.2009.
    Beiträge
    254

    Standard

    Falls sich mir jemand erbarmen möchte, sende ich einen Link zur Webseite gerne per PN zu.

    EDIT:

    .block {
    overflow: hidden;
    }

    hats ausgeblendet.. Danke an backbone87
    Geändert von arnoldB (15.04.2011 um 13:21 Uhr)
    Chuck Norris doesn’t use web standards as the web will conform to him...

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
  •