Results 1 to 7 of 7

Thread: Template map

  1. #1
    Join Date
    Jan 2008
    Posts
    7

    Default Template map

    Has anyone gone through the trouble to 'map' out the template structure? Maybe each template is too unique to do so. In that case, is there a simple way to know exactly what blocks or pages are being loaded so I can go and edit them without an endless blind search. Sort of a parent-child page thing between the html's and between the html's and php's. I can follow the html code but I am far from an expert.

    Thanks.

  2. #2
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    There is a way, but for some users it may be difficult to follow.

    First a quick description of how the flow in IndexU works

    Users get to the site on the Index page. If they click on a category they are taken to a browse page, and if they click on details then they are taken to the detail_link page

    Other pages are more obvious and are typically named as they are seen.

    Now if you went and looked at the .php file, for example detail.php you could search for "html" and find these inside that file

    detail_link.html
    review_rows.html
    detail.html
    404.html
    suspended.html

    So all those pages are basically what you call children of detail.php. Take a look inside those pages to modify almost everything that could come up when someone viewed the details of a link.

    Note that every page uses header.html and footer.html so those are special cases.

    To list this for every possible page would be a huge list, not impossible, but a lot of work. I'll consider doing this for the new manual.

  3. #3
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    I think I should make better map in admin panel. Is it still confusing?
    Basically, the template (html) name is following the php file.
    So if you're accessing add.php, so the template files should start with add prefix. They're many files, add_form.html, add_ok.html, add_error.html

    each template file ends with rows.html (or _rows.html) is a child template for link/item iteration. The prefix, should be similar with the parent template.

  4. #4
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    It's not confusing to programmer type people, but for new users they just don't know what files are called when they view domain.com/browse.html

    It gets even worse for new users when mod_rewrite is enabled, because they can't even see the word "browse" in the URL.

    Hopefully this will be fixed when I release the manual. But as you know Dody I am working on a different project for now.

  5. #5
    Join Date
    Jan 2008
    Posts
    7

    Default

    I have a pretty good feel for getting around. I get stumped when I run into the pagination command.

    For instance, on the web links page which is the browse.html file, I want to drop the review and ratings stuff. How do I get to it to change it?

    And yes, for us non programmers, more documentation would be nice.

  6. #6
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    it's in rows.html

  7. #7
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    More documentation is on the way, but it's taking a very long time.

Similar Threads

  1. 3 New Template Available + Template Price reduced!!
    By sikumbang in forum Templates
    Replies: 9
    Last Post: 07-23-2007, 09:27 AM
  2. The Template Tag
    By ime in forum Templates
    Replies: 10
    Last Post: 05-01-2006, 11:31 AM
  3. hot template
    By Mythotical in forum Templates
    Replies: 4
    Last Post: 02-03-2005, 01:32 PM
  4. php in template
    By snaip in forum Templates
    Replies: 1
    Last Post: 10-01-2004, 04:31 AM
  5. Replies: 3
    Last Post: 04-24-2003, 04:31 PM

Posting Permissions

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