+ Reply to Thread
Results 1 to 10 of 21

Thread: New dekiwiki menu

Hybrid View

  1. #1
    Join Date
    Jul 2009
    Posts
    10

    Default New dekiwiki menu

    I want to develop "msdn" like menu.
    a menu that will be always full.
    i understood that there is a webservice i guess the rewrite rule sends this request:
    http://site/@api/deki/site/nav/home/...son&width=1600

    to some php file that does the work.

    the questions are:
    1. where is this file?
    2. can i change it to get a full menu? if yes does it needs changes on nav.js?

    thanks!
    Last edited by shachr; 07-08-2009 at 01:01 PM.

  2. #2
    Join Date
    Feb 2008
    Location
    London upon Thames
    Posts
    2,792

    Default

    Previously discussed in part in this thread. If you're seriously keen - fantastic! We'll all be very happy to help.
    If my post helped you, please click the icon below this post to my reputation. Thanks!

  3. #3
    Join Date
    Jul 2009
    Posts
    10

    Default

    do you know where is the code that return the html of the menu?

  4. #4
    Join Date
    Feb 2008
    Location
    London upon Thames
    Posts
    2,792

    Default

    I don't myself - isn't it nav.js? Dig into the PHP and you'll find it. Or ask Guerric!
    If my post helped you, please click the icon below this post to my reputation. Thanks!

  5. #5
    Join Date
    Feb 2007
    Location
    San Diego, CA
    Posts
    132

    Smile JS Menu

    You will need to combine jQuery with the MindTouch API. You can get quite a lot of information using the subpages API. From there you should be able to build the navigation that you're looking for.

    I have been working on a similar navigation that uses jQuery and the API to retrieve subpages via AJAX onclick. It is very important to use ajax so you don't overload your server by trying to load the entire hierarchy structure. Additionally JQuery XML parsing is really nice and takes a lot of the pain out of this process.

    You can find more info about the subpages API here: http://developer.mindtouch.com/index.php?title=Deki/API_Reference/GETages%2F%2F{pageid}%2F%2Fsubpages.

    We have discussed the MSDN navigation numerous times here so keep us posted on your progress.
    I do HTML, CSS, Jquery and DekiScript. I designed Fiesta and enjoy building apps on top of MindTouch.

    Thanks for your contribution,

    Damien Howley
    @DamienH

  6. #6
    Join Date
    Jul 2009
    Posts
    10

    Default

    yeah , it could be nice but the real thing will be to change the way dekiwiki produce the html cause when you call the api and ask for full you get dockedNode ..
    i would like to always produce the home+children and sub children till i get the page ...
    all the rest of the navigation can be ajax,jQuery or whatever so thats no the problem.
    the problem is how i get html on php end that always return home+children+ all the path to the page i'm on.

    10x!

  7. #7
    Join Date
    Jul 2009
    Posts
    10

    Default

    - Home
    - child 0
    - child 1
    - child 1.0
    - child 1.1
    - child 1.2
    - child 1.2.0
    - child 1.2.1
    - child 1.2.2
    - child 1.2.2
    - child 1.2.2.0
    - child 1.2.2.1 --- current page here
    - child 1.2.3
    - child 1.3
    - child 2
    - child 3

    full tree with first children closed except the first child that holds the page.
    that's what i try to achieve ...
    at the moment it seems to me that i can only ask for home with 'full' at try to load on client side the current page im on.
    i could regex on server side and try to change the html that i get but i dont think i want to do that. :-)

  8. #8
    Join Date
    Jul 2009
    Posts
    10

    Default source files , "DekiWikiService.GetNavigationFull" and "NavBL.GetNavigationFull"

    i've realized that the api is acctually cSharp.
    and i've downloaded the source and found "DekiWikiService.GetNavigationFull" and "NavBL.GetNavigationFull"
    now i can see that there are some if/continue on nodes that you dont want to show..
    now i want to show always all the tree where only the current page path is open.

    now i have a few questions...
    basiclly i want to change the "NavBL.GetNavigationFull" to return all the tree instead of only what there is now.
    the thing is i dont understand what the properties like:
    IsTalk , IsTemplate , IsSpecial & IsMain
    maybe someone from the mindthouch team can help we figure out how can i produce real full tree by changing the source and compile a new dll.

    10!

  9. #9
    Join Date
    Jul 2009
    Posts
    10

    Default

    10x!* :-) !

+ Reply to Thread

Posting Permissions

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