t3brightside / pagelist

TYPO3 CMS extension for page lists & teasers. Comes with custom page types for articles, events, products and vacancies.
https://t3brightside.com
Other
10 stars 1 forks source link
blog events news products typo3 typo3-extension vacancies

Pagelist

License Packagist Downloads Brightside

TYPO3 CMS extension to create page lists and add custom page types. Page lists from selected page records or subpages. Demo

Breaking Changes

Features

System requirements

Conflicts with

Installation

Usage

Add as any other content element. Select desired pages, template and options in content element settings.

Add custom template

TypoScript Check the constant editor.

PageTS

TCEFORM.tt_content.tx_pagelist_template.addItems {
  minilist = Mini list
}

Fluid Add new section with IF condition to determine template name 'minilist' to: Resources/Private/Templates/Pagelist.html

<f:if condition="{data.tx_pagelist_template} == minilist">
  <div class="pagelist custom template-{data.tx_pagelist_template}">
    <f:for each="{pagelist}" as="page" iteration="iterator">
      <f:render partial="Minilist" arguments="{_all}" />
    </f:for>
  </div>
</f:if>

Create new partial: Resources/Private/Partials/Minilist.html

routeEnhancers

For the pagination routing check t3brightside/paginatedprocessors

  /* only TYPO3 10.4 and below */
  routeEnhancers:
    Pagelist:
      type: Plugin
      routePath: '/page/{@widget_0/currentPage}'
      namespace: 'tx_pagelist_pagelist'
      aspects:
        '@widget_0/currentPage':
          type: StaticRangeMapper
          start: '1'
          end: '999'

Known issues

Doesn't fully comply with the language modes. Does not respect '[FE][hidePagesIfNotTranslatedByDefault] = true' as 'TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor' does not fully respect language modes while selecting pages yet.

Sys categories have to be saved somewhere in the same page root to show categories in page templates with the {page.categories}

Sources

Development & maintenance

Brightside OÜ – TYPO3 development and hosting specialised web agency