Log in | Register | Lost password

Bottom
Rewrite Help
  • Posted: 13.04.2006, 00:16
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Okay, I'm working on a project for a client, and they want to use PageSetter for some Tutorials. What I'm thinking, and they would like is the following:

    1. Use categories to define what application the tutorial is for (PhotoShop, Pagemaker, GoLive, ect).
    2. Set up a short URL that would be forexample www.example.com/PhotoShop/index.html that would list the tutorials in the PhotoShop category

    Then have www.example.com/PhotoShop/Tutorial###.html for the individual tutorials.

    How would I accomplish this? I'm guessing no chance to do it on the fly, so if they added a category after the fact it would be there?
  • Posted: 13.04.2006, 07:20
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I'm thinking about something similar for a new site.
    I haven't written any code right now.
    But i have some ideas about that. In

    Code

    modules/xanthia/plugins/outputfilter.shorturls.php

    you have to check if there are pagesetter links.

    For each link to a publication fetch the value of the categorie field and its subcategories.

    Rebuild the link in a way you like and choose a different file extension then for the other shorturls.

    Somewhere in this link you have to put the tid and pid, so that you can use it in the htaccess file.

    for example:

    Code

    www.example.com/PhotoShop/Tutorial-5-8.phtml


    for tid=5 and pid=8

    So you can check in the htaccess file for something like that:

    Code

    -([0-9]*)-([0-9]*).phtml


    I stopped thinking about that, because in 0.8 the shorturls seem to be in a similar way.
  • Posted: 13.04.2006, 20:44
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Okay, now the client is asking for, despite the fact i THOUGH i told him it'd be difficult at best, impossible at worst, the tutorial####.html to be
  • Posted: 18.04.2006, 07:24
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
  • Posted: 08.06.2006, 08:16
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
  • Posted: 21.06.2006, 20:17
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0

Template courtesy of Designs By Darren.