Copied to clipboard

Flag this post as spam?

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


  • Kevin Florida 8 posts 20 karma points
    Apr 03, 2009 @ 18:21
    Kevin Florida
    0

    2 different Menus on same page with different links?

    Hello,

    I successfully figured out how to display navigation links on the top and side of my Web site. However I cannot figure out how to point specific links to specific navigation sections.

    For Example:
    In my "Home" folder I have the links:
    1)Contact Us
    2)About Us

    I want content of "Home" folder to only display on the left navigation links

    In my "topNav" folder I have the links:
    1)Privacy Policy
    2)Terms of Use

    I want the content of "topNav" folder to only display on the top navigation links.

    Both navigation menus must display on all pages and all links must display on all pages. So far I can only get this to work if all the links display in both positions.

    Any ideas as how to accomplish this?

    I appreciate any help out there!

  • Kevin Florida 8 posts 20 karma points
    Apr 03, 2009 @ 19:37
    Kevin Florida
    0

    I figured it out.=d>

    First off, I created a document type for the documents I wanted to display only in the top navigation.

    For example, links to display in the left navigation were titled with the alias, "TextPages" and the links to display in the top navigation are named with the alias, "topTextPages".

    I created a new navigation xlst and macro file using the following code (you will notice that my document type alias is in bold in the code below (this excludes the default header and footer in the xslt file generated by umbraco):













    I then plugged the new macro I created with this code into the appropriate master page.

  • Kevin Florida 8 posts 20 karma points
    Apr 03, 2009 @ 19:42
    Kevin Florida
    0

    I found one bug in the code below, the unordered list isn't properly set up:

    [quote=kflorida]I figured it out.=d>

    First off, I created a document type for the documents I wanted to display only in the top navigation.

    For example, links to display in the left navigation were titled with the alias, "TextPages" and the links to display in the top navigation are named with the alias, "topTextPages".

    I created a new navigation xlst and macro file using the following code (you will notice that my document type alias is in bold in the code below (this excludes the default header and footer in the xslt file generated by umbraco):













    I then plugged the new macro I created with this code into the appropriate master page.
    [/quote]

    Here is what it should look like:








Please Sign in or register to post replies

Write your reply to:

Draft