Copied to clipboard

Flag this post as spam?

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


  • Streety 358 posts 568 karma points
    Jan 25, 2011 @ 11:16
    Streety
    0

    Related Links

    Hello,

    I am working my way through your Basic Website and its very impressive. Indeed it may look basic to the user but I am impressed how you have handled navigation and content panels et al.

    I am not using your downloaded directory but creating the objects as I need them so that I can learn how it all fits together.

    One issue that I am having problems with is the homepage related link.

    I have create the doc type and created a duplicate home node at level 2 so that the nav items can pick it up. However when I click on a nav item for home a blank page is shown not the homepage.

    Is there a bit of code that I have missed that handles the re-direction?

    Any help appreciated.

  • Chris Koiak 700 posts 2626 karma points
    Jan 25, 2011 @ 11:22
    Chris Koiak
    0

    You shouldn't have to create the duplicate homepage node. Try just selecting the root page using the content picker?

    Chris

  • Streety 358 posts 568 karma points
    Jan 25, 2011 @ 12:17
    Streety
    0

    That's odd.

     

    I don't have a content picker in your Simple Website example. But I do have a physical node.

  • Chris Koiak 700 posts 2626 karma points
    Jan 25, 2011 @ 12:31
    Chris Koiak
    0

    It's best to avoid creating a duplicate node where you can as it just causes hassle for you and confusion for your editors.

    I'd advice running your navigation from a content picker where you can select nodes from any level. Is this not how Basic Website does it?

    Chris

  • jigar 170 posts 233 karma points
    Jan 25, 2011 @ 12:35
    jigar
    0

    Is there any specifi requirement you do so ( Creating duplicate home pages)? let us now may be there can be alternate way to do this.

    Cheers,

    Jigar

  • Streety 358 posts 568 karma points
    Jan 25, 2011 @ 12:43
    Streety
    0

    I think you are missing my point. I have created a vanilla site and installed the your Standard Site 1.1 and in the content pane I get this node. I didn't create this its part of the site.

    I can see why its there to allow for naviagtion to pickup all the level 2 nodes.

  • Chris Koiak 700 posts 2626 karma points
    Jan 25, 2011 @ 13:23
    Chris Koiak
    0

    BasicSite and StandardSite use 2 different approachs for Navigation.

    I would go with the one in BasicSite, it requires uComponents MultiTreePicker. I wanted the StandardSite package to have no dependencies otherwise I would have taken the same approach as BasicWebsite.

    However, I think StandardWebsite does the redirect through the umbracoUrl field on the child homepage.

     

  • Streety 358 posts 568 karma points
    Jan 25, 2011 @ 13:53
    Streety
    0

    Yes. That is what I am asking... How did you do it. Its doesn't work for me. I get a blank page.

    I am trying trying to figure how you got it to work as I cannot.

  • Chris Koiak 700 posts 2626 karma points
    Jan 25, 2011 @ 14:05
    Chris Koiak
    0

    Gotcha.

    I have a field on the child homepage called "RedirectUrl"

    The navigation xslt then contains the following choose statement

    <xsl:choose>
              <xsl:when test="string-length(data[@alias='RedirectUrl']) > 0">
                <a href="{data[@alias='RedirectUrl']}" title="{@nodeName}">
                  <xsl:value-of select="@nodeName"/>
                </a>
              </xsl:when>
              <xsl:when test="string-length(data[@alias='RedirectPageId']) > 0">
                <a href="{umbraco.library:NiceUrl(data[@alias='RedirectPageId'])}" title="{@nodeName}">
                  <xsl:value-of select="@nodeName"/>
                </a>
              </xsl:when>
              <xsl:otherwise>
                <a href="{umbraco.library:NiceUrl(@id)}" title="{@nodeName}">
                  <xsl:value-of select="@nodeName"/>
                </a>
              </xsl:otherwise>
            </xsl:choose>
  • Streety 358 posts 568 karma points
    Jan 25, 2011 @ 15:36
    Streety
    0

    Sorry Chris.

    This is my mistake. You don't use the Home link in the side navigation which uses the navigation.xslt script.

    I do have that working. Apologies.

    What doesn't work for me is the:

    1. headerNavigation
    2. primaryNavigation

     Both based on the RelatedLinksList.xslt script. I get nothing back.No output.

     From what I have figured out it relates to the navigation and header tabs on the homepage. This relies on the Page Picker data type pointing to the Home Page Node ID. 

    OK so within the homepage I get the list of nodes to select in both tabs but the macro doesn't render anything.

    The macro passes the variable  PropertyAlias  such as "headerNavigation" to the script but when I view the script I can't follow what it is doing...

    Could you please tell me if this macro is calling anyting other than the navigation.xslt script?

     

    Apologies for all the questions but I am nearly there.

  • Chris Koiak 700 posts 2626 karma points
    Jan 26, 2011 @ 20:22
    Chris Koiak
    0

    It is only calling the xslt.

    Try outputting any variables straight to the screen using value-of or copy-of to check they're what you're expecting.

Please Sign in or register to post replies

Write your reply to:

Draft