Site navigation


Last Edit

Page last modified 02:26, 20 Dec 2010 by Dadeo
Prev/Next >

Prev/Next

    Table of contents
    No headers
    var sortKey = "title"; var sortOrder = false; var pages = page.parent.subpages; var listOfPages = []; foreach (var p in pages) { let listOfPages ..= [{ name: p.name, title: p.title, id: p.id, uri: p.uri, date: p.date }]; } let listOfPages = list.sort(listOfPages, sortKey, sortOrder); var n = list.indexof(list.collect(listOfPages, "id"), page.id); var current = listOfPages[n]; var previous = listOfPages[n - 1]; var next = listOfPages[n + 1]; if (#previous > 0) { web.text("Previous: "); web.link(previous.uri, previous.title); web.html("
    "); } if (#next > 0) { web.text("Next: "); web.link(next.uri, next.title); }



    Tag page (Edit tags)
    • No tags

    Running the latest version?

    V1.12.0 - released July 2015
    Releasenews | Download
    Changelog
    | Requirements

    MediaPortal RSS Feeds

    windows media centerNews & Blogs
    htpcP&S: New
    htpcDocumentation

    Team-MediaPortal

    HTPCAbout
    Contact | Press
    Partners