Hallo miteinander,
Kennt jemand die Extension wec_connector? Ich habe diese erfolgreich installiert. Es gibt nun im Backend die Möglichkeit, im Flexform die Anzahl der Board-Einträge pro Seite zu limitieren. Wenn ich dies tue, werden zwar tatsächlich die Einträge im Frontend auf die eingetragene Anzahl reduziert, aber es wird kein pagebrowser angezeigt, so dass die restlichen Einträge ebenfalls beatrachtet werden können. Im Template ist der pagebrowser vorhanden:
<!-- ###PAGELINK### begin -->
<div class="pluginFooter">
###LINK_PREV### ###PAGE_NUM### ###LINK_NEXT###
</div>
<!-- ###PAGELINK### end -->
</div>
Ebenso ist eine entsprechende Funktion in in der class.tx.....php vorhanden:
//--------------------------------------------------------------------------------------------
//
// THEN add a next/prev/page link if we need to put each entry into the template
//
//--------------------------------------------------------------------------------------------
$templatePageLinkContent = $this->cObj->getSubpart($templateMainContent, '###PAGELINK###');
// Make Next link
//---------------------------------------------------------------
if ($count > $begin_at + $limit) {
$next = ($begin_at + $limit > $count) ? $count - $limit : $begin_at + $limit;
$next = intval($next / $limit);
$params = t3lib_div::_GET();
$params['tx_wecconnector']['pagenum'] = $next;
$linkURL = $this->pi_getPageLink($this->id,'',$params);
$markerArray['###LINK_NEXT###'] = '<div class="pageLink"><a href="'. $linkURL.'">'.$this->pi_getLL('next_page', 'Next >').'</a></div>';
} else {
$markerArray['###LINK_NEXT###'] = '';
}
// Make Previous link
//---------------------------------------------------------------
if ($begin_at > 0) {
$prev = ($begin_at - $limit < 0) ? 0 : $begin_at - $limit;
$prev = intval($prev / $limit);
$params = t3lib_div::_GET();
$params['tx_wecconnector']['pagenum'] = $prev;
$linkURL = $this->pi_getPageLink($this->id,'',$params);
$markerArray['###LINK_PREV###'] = '<div class="pageLink"><a href="'. $linkURL.'">'.$this->pi_getLL('prev_page', '< Previous').'</a></div>';
} else {
$markerArray['###LINK_PREV###'] = '';
}
// Make Page show & Pages link
//---------------------------------------------------------------
$firstPage = 0;
$lastPage = ceil($count / $limit);
$actualPage = floor($begin_at / $limit);
$markerArray['###PAGE_NUM###'] = '<div class="pageLink">'. $this->pi_getLL('page_name', 'Page') . (string)($actualPage + 1) . '</div>';
$markerArray['###PAGES###'] = '';
if (!strpos($templatePageLinkContent, '###PAGE_NUM###')) // if no PAGE_NUM, then put "Page"
$markerArray['###PAGES###'] .= '<div class="pageLink">'.$this->pi_getLL('page_name', 'Page').'</div>';
for ($i = $firstPage ; $i < $lastPage; $i++) {
// allow linked page numbers
$item = (string)($i + 1);
$params = t3lib_div::_GET();
$params['tx_wecconnector']['pagenum'] = $i;
$linkAHref = '<a href="'. $this->pi_getPageLink($this->id,'',$params).'"> '. $item . ' </a> ' ;
if ($i == $actualPage) $linkAHref = $item;
$markerArray['###PAGES###'] .= '<div class="pageLink pageLinkPad">'.$linkAHref. $this->pi_getLL('pagenum_divider').'</div>';
}
Im manual ist der einzige Hinweis über die Handhabung: "If you did not need or support the page links, then this would have a blank output." So, und diesen blank output habe wohl... hätte aber gerne einen funktionierenden pagebrowser :-)
Gibt's noch etwas, was ich übersehen habe?
Vielen Dank für eure Antworten
Mila