Page 1 of 2 12 LastLast
Results 1 to 15 of 27
  1. #1
    4 Star Lounger
    Join Date
    Dec 2000
    Location
    Faifax, Virginia, USA
    Posts
    542
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Navigation 'Lists'

    In the "Javascript Menus" thread, MarkJ mentioned the Download.com site. On said site, there is a Navigation list at the top of each page of the form
    CNET > Downloads > Windows > Web Authoring > JavaScript
    in which each of the words to the left of JavaScript is a link to a parent page.

    What is this list called?

    How can I incorporate this thing into my sites (without thinking <img src=/S/grin.gif border=0 alt=grin width=15 height=15>)?

  2. #2
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Navigation 'Lists'

    I believe it is called a hierarchical list - discussed in Post 126095.

  3. #3
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    1,862
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Navigation 'Lists'

    FWIW - I call it "Breadcrumb navigation" (as in Hansel and Grettel)

    I usually do it manually, unless I'm working in the context of a web Application where I can maintain state using Session Variables...

  4. #4
    4 Star Lounger
    Join Date
    Dec 2000
    Location
    Faifax, Virginia, USA
    Posts
    542
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Navigation 'Lists'

    Golly ~ i almost word-for-word duplicated a previous question.

    I guess 'by hand' doesnt require thought, as I specified. <img src=/S/rofl.gif border=0 alt=rofl width=15 height=15> Gotta be a way to automate this, sort of like the FP sitemap component.

    Thanks, Leif

  5. #5
    4 Star Lounger
    Join Date
    Dec 2000
    Location
    Faifax, Virginia, USA
    Posts
    542
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Navigation 'Lists'

    Thanks Mark.

    The problem with 'manual' is when i start rearranging things. I have one site with > 250pp...

    Viewing all the blank space in the source of the Download.com pages makes me think the navigation is generated with something.

  6. #6
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    Cincinnati, Ohio, USA
    Posts
    7,089
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Navigation 'Lists'

    Amen, that's exactly what I am looking to do - automate it with PHP, preferably - so that I don't need to recode a script every time I add content. If you find something that does the job, shout it out! What would be really nice is a good editor for javascript that doesn't cost a fortune....I'm sure there are quality editors for this purpose around, but I've not found one that I liked yet.
    -Mark

  7. #7
    4 Star Lounger
    Join Date
    Dec 2000
    Location
    Faifax, Virginia, USA
    Posts
    542
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Navigation 'Lists'

    I am looking for EASY. In my case, easy would mean something along these lines:

    1. some kind of FP component/extension. No thought at all.
    2. some way to get ahold of the FP object model and force it to my will. Unfortunately, there is not a lot of the object model exposed, last I looked.
    3. an ASP script, but that means renaming each page to *.asp.

    But this is being done already, so this should be a no-brainer. I'll post if i find anything.

  8. #8
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    1,862
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Navigation 'Lists'

    The key to the process is establishing the relationship between pages - Parents and Children.

    You could easily establish a database to store a table of Pages, then a table to designate which pages are Parents, and finally a table to designate which Children pages belong to which Parent pages. Each ASP page will have a Page ID assigned in the page's code. Then you will lookup the parents of the page, the parents of that page, and so on.

    The specifics may need some work, but the idea is pretty solid.

    HTH

  9. #9
    4 Star Lounger
    Join Date
    Dec 2000
    Location
    Faifax, Virginia, USA
    Posts
    542
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Navigation 'Lists'

    FP has a database in it somewhere already, so I dont want to duplicate that.

    In the link Leif referenced HOWTO: Automate FrontPage to Create a New Web and Set a Navigation Structure (Q262987) , there's some code that accesses the navigation structure:
    <pre>Private Sub ApplyNavigationStructure(oFP As Frontpage.Application)
    Dim oPagewin As Frontpage.PageWindow
    Dim oFPdoc As FrontpageEditor.IHTMLDocument2
    Dim oBot As FrontpageEditor.FPHTMLFrontpageBotElement
    Dim oNavNode As Frontpage.NavigationNode

    ' Get the home page navigation node
    Set oNavNode = oFP.ActiveWeb.HomeNavigationNode
    ' Add two children to the home page
    oNavNode.children.Add "temp1.htm", "Child #1 (temp1.htm)", fpStructLeftmostChild
    oNavNode.children.Add "temp2.htm", "Child #2 (temp2.htm)", fpStructRightmostChild
    ' Apply the structure
    oFP.ActiveWeb.ApplyNavigationStructure
    ' Set the shared borders for the current web
    oFP.ActiveWeb.SharedBorders = fpBorderLeft Or fpBorderBottom

    ' Load the _borders/left.htm file
    Set oPagewin = oFP.LocatePage(Servername & "/" & FPWebFolder & _
    "/_borders/left.htm", fpPageViewDefault)
    oPagewin.Activate
    ' Get the Document object
    Set oFPdoc = oPagewin.Document
    ' Look for the "Navigation" webbot
    For Each oBot In oFPdoc.All.tags("webbot")
    If oBot.getBotAttribute("bot") = "Navigation" Then
    ' Add a link to the home page to the navigation bot
    Call oBot.setBotAttribute("b-include-home", "TRUE")
    End If
    Next oBot
    ' Save left.htm
    oPagewin.Save
    ' Close the file
    oPagewin.Close
    End Sub
    </pre>

    which gives me the hope that i can hack this thing.

    Later, after <img src=/S/burga.gif border=0 alt=burga width=40 height=15>.

  10. #10
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    1,862
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Navigation 'Lists'

    Hi Peter,

    Is your website currently running in a FrontPage environment? If so, your code sounds like a good idea. If not, I just don't feel comfortable using FrontPage functionality in a non-FP environment.

    The sample you posted gives me an idea - I wonder if the strucure could be kept using an XML source. It matches the XML format almost perfectly - child nodes, parent nodes, etc...

    Editing XML files is not terribly difficult using the MS XML objects...

    Just a thought

  11. #11
    Super Moderator WebGenii's Avatar
    Join Date
    Jan 2001
    Location
    Redcliff, Alberta, Canada
    Posts
    4,066
    Thanks
    2
    Thanked 5 Times in 5 Posts

    Re: Navigation 'Lists'

    Hi Peter
    I was delighted to find this site which has <font color=blue>"Miscellaneous FrontPage 2000 Macros"</font color=blue>. Now I haven't tried anything except for the Breadcrumb Trail, but after a couple of hitches I've got it working well. (And those hitches could be because I have both FP 2002 and FP 2002 on my system. Anyhow - it will use the navigation map as the source of information for the breadcrumb trail.

    So you may save yourself some time.

    Cheers
    [b]Catharine Richardson (WebGenii)
    WebGenii Home Page
    Moderator: Spreadsheets, Other MS Apps, Presentation Apps, Visual Basic for Apps, Windows Mobile

  12. #12
    4 Star Lounger
    Join Date
    Dec 2000
    Location
    Faifax, Virginia, USA
    Posts
    542
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Navigation 'Lists'

    Hi Mark ~

    Yes, ALL of my sites are FP enabled. It's super easy to let it keep track of pages, links, etc., generation of sitemaps, what's new, auto database hookup, etc. So my host(s) have to have the FP extensions installed. I find they work best on Windows 2000.

    Now I'm "looking forward to" the .NET thing...

  13. #13
    4 Star Lounger
    Join Date
    Dec 2000
    Location
    Faifax, Virginia, USA
    Posts
    542
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Navigation 'Lists'

    That is a TERRIFIC site!

    Thanks, Catherine!

  14. #14
    4 Star Lounger
    Join Date
    Aug 2002
    Location
    Dallas, Texas, USA
    Posts
    594
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Navigation 'Lists'

    You can very easily 'view' and even edit the navigation from FrontPage itself (through VBA code), so you can create a 'macro' to update your site. However, I just recently posted an ASP script that builds a sitemap page from the FrontPages 'navigation' data file. It's not that hard to crack, it's just a comma seperated text file. (structure.cnf) (I think the folder is '_pvt'....heading home, don't feel like looking it up. But I posted about it in the FP section (Dynamic Site Map). I also posted a VB ActiveX .dll that does the same thing (I think nicer....), but it requires that you can register an ActiveX on your host site.

    Give me a holler if you have any questions on my .asp code.

  15. #15
    4 Star Lounger
    Join Date
    Aug 2002
    Location
    Dallas, Texas, USA
    Posts
    594
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Navigation 'Lists'

    Actually #3 isn't entirely true. If you have access to your IIS server, you can set any file extension you want to be 'read' by the asp engine. (I don't know if hosting companies let you do that or not....but it is possible.).

    Drew

Page 1 of 2 12 LastLast

Posting Permissions

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