Skip to content

Use Textpattern 4.8 core tags/attributes to remove etc_pagination plugin #278

@philwareham

Description

@philwareham

Changes in Textpattern 4.8 allow us to achieve complex pagination patterns without the need for a dedicated plugin. When Textpattern 4.8 releases, and we update the version running Textpattern.com, we can do this.

CC @bloatware who I may need some help from, in achieving this. Example current code, using plugin:

<txp:evaluate test>
    <nav class="paginator" aria-label="Blog navigation">
        Pages:
        <txp:etc_pagination range="3"
            prev='<a rel="prev" href="{href}" title="Go to previous page" aria-label="Go to previous page">Previous</a>'
            next='<a rel="next" href="{href}" title="Go to next page" aria-label="Go to next page">Next</a>'
            link='<li><a href="{href}" title="Go to page {*}" aria-label="Go to page {*}">{*}</a></li>,<li class="current"><b title="Current page" aria-label="Current page">{*}</b></li>'
            gap='<li role="separator" title="More pages" aria-label="More pages">…</li>'
            mask='{prev}<ul class="pagination">{first}{<+}{links}{+>}{last}</ul>{next}' />
    </nav>
</txp:evaluate>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions