Results 1 to 7 of 7

Thread: Detail Link - Tab Menu

  1. #1
    Join Date
    Apr 2006
    Posts
    447

    Red face Detail Link - Tab Menu

    I've been trying to set up a tab menu system that would break out information from detail_link.html

    The first tab, in my case, would contain address/contact information; second tab 'Description'; third 'Hours', etc. Instead of having these details all on one page, I'd like them on separate "pages".

    I found myself quickly in over my head. Basically, I don't know how to pass specific link-level data (which is rendered by detail_link.html) out into static, external pages -- data such as <%$description%>

    Any ideas anyone? Is this possible? How difficult?
    Last edited by CEC; 07-03-2006 at 12:36 PM.

  2. #2
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    detail.php is the one you need to look at worry about passing variables to the detail.html file and your sorted. Have a look at this mod i did which passes variables to the detail page, you should get the idea :

    http://www.nicecoder.com/community/s...ead.php?t=3725
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  3. #3
    Join Date
    Apr 2006
    Posts
    447

    Default

    Thanks inspireme.

    I've been through your mod, and follow how it works for the purposes it was designed.

    I have tried working with the mod, but I'm still really hazy on applying it here -- where 'simply' I want to have, say, a link's description render on a separate page (clickable from link details).

  4. #4
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    Oh ok... so the items are all custom fields?

    Thats easy then, i think i misunderstood the question, heres how i would do it : save the detail.php file as detail2.php open it and change every occurence of detail.html to detail2.html

    Now load detail.html and save this as detail2.html
    Load up detail_link.html and save this as detail_link2.html (find and replace occurences of detail_link in detail.php to detail_link2.html)

    Now you have a complete working replica of the detail pages renamed.

    Make changes to the template files so it displays only the information you want in the new window.

    Link to detail2.php from the detail_link page

    Hope you understand my logic its simple and easy way around the problem
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  5. #5
    Join Date
    Apr 2006
    Posts
    447

    Default

    thanks again inspire me!

    couple of quick questions:
    1) you note: find and replace occurrences of detail_link in detail.php to detail_link2.html ... * do you mean replace in in detail2.php?

    2) not sure I follow the last step: Link to detail2.php from the detail_link page

    I think this is the route ... just unsure about a few of these details. Thanks for bearing with me on this!

  6. #6
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    i do mean replace it in detail2.php, sorry typo...

    the last step is to make the link to the second information page, you will need to link to it like this :

    detail2.php?id=<%$link_id%> from the detail_link.html file
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  7. #7
    Join Date
    Apr 2006
    Posts
    447

    Default

    test worked! ... thanks very much inspireme.

Similar Threads

  1. Link back to detail after new review
    By manuel_pr in forum v5.x
    Replies: 2
    Last Post: 02-19-2005, 10:33 AM
  2. affiliate link in url on detail page
    By morgankd in forum v5.x
    Replies: 4
    Last Post: 05-19-2004, 11:52 PM
  3. using sendmail for link-detail
    By tjoerg in forum v3.2
    Replies: 4
    Last Post: 09-05-2003, 08:47 PM
  4. popup menu in submit link forum
    By persut in forum v5.x
    Replies: 2
    Last Post: 05-14-2003, 06:26 AM

Posting Permissions

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