Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • robert coyle 14 posts 34 karma points
    Sep 25, 2010 @ 20:13
    robert coyle
    0

    No CogWorks in Umbraco 4.5!! Can XSLT Navigation protytype help?

    Hi Guys,
    Ive had to upgrade to 4.5 due to a bug... no I learn CogWorks navigation does not work in 4.5! Drat. I had been using CogWorks to put extra navigations on my templates. For example my Utility navigation at the top right. 

    It seems now I have to go back to using an XSLT Macro to create my navigations. I see there is an XSLT macro called "List all pages from my current page"... that should do fine for the top navigation. However how do I create my Utility navigation? Its not actually under the same parent node. From reading around the XSLT macro "Navigation Prototype" might be of use but I can find zero documentation on how to use it. If this is the solution would anyone have some sample script showing how "navigation protype" is used to create a menu from "anywhere" on the tree?

    Thanks for your help community.

    Robert

     

  • Rich Green 2246 posts 4008 karma points
    Sep 25, 2010 @ 20:21
    Rich Green
    0

    I would recommend you post an image of your content structure and also explain exactly what you mean my Utility navigation and where it is in your structure, this will enable people to help you better.

    Rich

  • Tim 225 posts 690 karma points
    Sep 25, 2010 @ 21:45
    Tim
    0

    Hiya,

    I'm just packaging up and about to upload the 4.5 version of Cogowrks Flexible Nav.

    So panic not!

    T

     

  • robert coyle 14 posts 34 karma points
    Sep 25, 2010 @ 21:49
    robert coyle
    0

    Hi Rich,
    Your right. I should have just said "any navigation thats not the main nav" rather than utility navigation. I have posted an image of what I mean! It shows my page tree versus a screenshot of my site.

    This navigation on the top right is just one example! There are other places on my website where I want to add navigations to the left and right column of my pages/nodes and these navigations would need to pull their links from sibling nodes... not just parents. For example ill need a small navigation containing a set of account management links to appear on certain page??

    Id give me right arm an example of how to ull this off with Navigation Prototype!

    screenshot attached ::))

  • Tim 225 posts 690 karma points
    Sep 25, 2010 @ 22:20
    Tim
    0

    Hiya

    Here is the 4.5 version of Cogworks Flexible Navigation:

    http://our.umbraco.org/FileDownload?id=1455

    Not had time to update the project page but will do in sue course.

    let me know if you have any problems.

    T

     

  • Rich Green 2246 posts 4008 karma points
    Sep 25, 2010 @ 22:26
    Rich Green
    0

    Hey Robert,

    You can use something like this

    <xsl:param name="Source" select="$currentPage/mySource" />
    
    <xsl:for-each select="umbraco.library:GetXmlNodeById($Source)/DocType">
    <!--Navigation code here-->
    </xsl:for-each>

    Add this code to an XSLT file, and add a macro parameter of mySource

    Then when you use your macro in a template set mySource parameter to be the node ID of the menu you want.

    You need to change the word "DocType" to the name of your "News & Newsletter" doc type.

    That's assuming it's just a one level nav of course.

    If you need a recursive nav, here's some code for 4.5 http://our.umbraco.org/wiki/reference/xslt/recursive-menu-umbraco-45

    Otherwise just wait for Tims package as it seems it's coming soon.

    Rich

     

  • robert coyle 14 posts 34 karma points
    Sep 25, 2010 @ 23:59
    robert coyle
    0

    Hi Tim/Rich,
    What an amazing confluence of luck :) I was just planning to skip the country and now suddenly I have two solutions. You bet your bottom dollar im trying Tim's new cogworks first. Rich, if I dont use your solution now ill definatly put it into the "getting started guide" im writing to post on the forum to help noobs like me.

    Two karma bubbles coming your way. Robert

Please Sign in or register to post replies

Write your reply to:

Draft