Results 1 to 9 of 9

Thread: Extension - Next Page

  1. #1
    User
    Join Date
    07-13-09.
    Posts
    83

    Default Extension - Next Page

    Hello, I´ve something like an "extension-suggestion". Since I´m not capable to build own extension I´d like to propose an extension here.
    Ever since I´m using Tl I build Artists Portfolios for my friends. Most of them look the same: they have a category with a certain year/technique in which they post their works.

    For example:

    2009
    - Work 1
    - Work 2
    - Work 3
    - Work 4
    2008
    2007
    ...

    Usually the page "2009" forwards to the page "Work 1". A user clicks "2009" and he sees the most recent work.
    Here´s the Problem:
    When the artists makes a new work and publishes it ("new work") he has to change the forwarding of "2009" to the new page. If he doesn´t do that, it would look like this:

    2009
    - new work
    - Work 1
    - Work 2
    - Work 3
    - Work 4
    2008
    2007
    ...

    I often thought it would be useful to have an option in the internal forwarding settings that is called "next page". it would automatically fwd the user to the next child or following page.
    also, having this as a modul would be very nice. you can click through all projects by clicking the "next page" button which automatically always chooses the next child page/following page.

    I think this would be a very usefull thing.
    But if this already works with certain workarounds that I just didn´t know about, please let me know!

    Best regards,
    Valentin

  2. #2
    User
    Join Date
    06-20-09.
    Location
    Spain
    Posts
    43

    Default Re: Extension - Next Page

    mmm maybe this can be done with catalog extension module. Scare, Thyon what do you think?
    ===
    Fernabel

  3. #3
    User
    Join Date
    06-19-09.
    Location
    Kosice, Slovakia
    Posts
    61

    Default Re: Extension - Next Page

    Well, using catalog would require too much work with little added value. Adding new inserttags would be better IMHO. Something like {{link::firstchild}}, {{link::lastchild}}, {{link::nextsibling}}, {{link:revsibling}}, {{link::firstsibling}}, {{link::lastsibling}}, {{link:arent}} and corresponding {{link_url}} tags.
    S.C.A.R.E

  4. #4
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: Extension - Next Page

    I believe Leo already implemented this?

  5. #5
    User
    Join Date
    06-19-09.
    Location
    Kosice, Slovakia
    Posts
    61

    Default Re: Extension - Next Page

    Did he? I looked at the last version and it is not implemented there. Maybe in trunk?
    S.C.A.R.E

  6. #6
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: Extension - Next Page

    scare, I wasn't talking about the inserttags, but the feature in general.

    Have you looked at the 2.7 feature:
    - Added module "book navigation"

    This generates a page-like nav, e.g. UP, Prev, Next. So you can navigate pages like well, pages in a book.

  7. #7
    User
    Join Date
    06-19-09.
    Posts
    41

    Default Re: Extension - Next Page

    Hi Thyon,
    I think Valentin means something different: when you set up an internal redirect page, you have to choose a target page for the redirect (else you'll get an error in the frontend calling the redirect page). Valentin wants the redirect to aim automatically at the first child page of the redirect page, when no target is chosen.

    Not a bad idea, could be done with an extension, I think. frontend > PageRedirect would have to be extended and possibly backend > dca > tl_page (to make it an option in the backend). I have a customer, who has difficulties with that. Maybe I give it a try...


    cheers
    Antipitch

  8. #8
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: Extension - Next Page

    But that module already contains the code to retrieve the next page, eg child. It can just be hacked out.

  9. #9
    User
    Join Date
    06-19-09.
    Posts
    41

    Default Re: Extension - Next Page

    Sorry, I meant the frontend > PageForward class. Can't see any child-page fallback in there though, generate() looks for the jumpTo entry or dies. So where would that
    that module already contains the code to retrieve the next page
    be (didn't look at the dca code yet)?


    cheers
    Antipitch

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •