Copied to clipboard

Flag this post as spam?

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


  • Daniel Horn 319 posts 344 karma points
    Mar 22, 2010 @ 17:48
    Daniel Horn
    0

    home wont dissapear

    Hey

     

    I've just installed the package and when i mark the hide from navigation it remains in the menu - anyone noticed this error or is it just me?

    see: http://umbtest.virtua.dk/

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Mar 22, 2010 @ 17:53
    Peter Dijksterhuis
    1

    Home is probably hardcoded? Take a look at the xslt that generates the menu.

    HTH,

    Peter

  • dandrayne 1138 posts 2262 karma points
    Mar 22, 2010 @ 17:54
    dandrayne
    0

    Hi Daniel

    Thanks for installing!

    Anyhow, the test or umbracoNaviHide should definitely be working, I just tested it at http://beta2.geckonm.com

    Here's the line in topNavigation.xslt

    <xsl:for-each select="$homePageNode/node [string(./data [@alias='umbracoNaviHide']) != '1']">

    A few things:

    • Is the above line in your topnavigation.xslt file?
    • What happens when you print out the value of $currentPage/data[@alias='umbracoNaviHide'] to the page? Is it 1?
    • Is the field on your document definitely called umbracoNaviHide, with same capitalisation and spelling?

    It's not a problem I've seen before, but thanks for reporting it. Hopefully we can get it sorted...

    Dan

  • Nik Wahlberg 639 posts 1237 karma points MVP
    Mar 22, 2010 @ 17:54
    Nik Wahlberg
    0

    Yeah, the homepage node is in the XSLT and assumed to always be there....

  • dandrayne 1138 posts 2262 karma points
    Mar 22, 2010 @ 17:58
    dandrayne
    0

    Urgh, thanks Peter

    Yeh, the homepage is hardcoded (I never imagined a situtation where it would be hidden!)  but I left the option to hide it in. doh

    @daniel Here's the line in the xslt that need to be changed

    change

    <li>
    <xsl:if test="$currentPage/ancestor-or-self::node [@level=1]/@id = current()/@id">
    <xsl:attribute name="class">current</xsl:attribute>
    </xsl:if>
    <!-- NiceUrl takes a node ID and gives us a 'nice url' to the page -->
    <a href="{umbraco.library:NiceUrl($homePageNode/@id)}">
    <xsl:value-of select="$homePageNode/@nodeName" />
    </a>
    </li>

    to

    <xsl:if test="string($homePageNode/data[@alias='umbracoNaviHide']) != '1'">
    <li>
    <xsl:if test="$currentPage/ancestor-or-self::node [@level=1]/@id = current()/@id">
    <xsl:attribute name="class">current</xsl:attribute>
    </xsl:if>
    <!-- NiceUrl takes a node ID and gives us a 'nice url' to the page -->
    <a href="{umbraco.library:NiceUrl($homePageNode/@id)}">
    <xsl:value-of select="$homePageNode/@nodeName" />
    </a>
    </li>
    </xsl:if>

    hope this helps,

    Dan

  • Daniel Horn 319 posts 344 karma points
    Mar 22, 2010 @ 18:09
    Daniel Horn
    0

    Thanks, it worked :).

    Well, i was just wondering why it wouldn't dissapear and i usually dont have a home button.

  • dandrayne 1138 posts 2262 karma points
    Mar 22, 2010 @ 18:14
    dandrayne
    0

    I was working under the mistaken assumption that everyone works the same way I do! ^^

    This package is due a major update, esp. with the new xml schema in 4.1.   Will add this to my list of fixes and improvements.

    Just realised I said "thanks for installing!" when we've been here before, and I've credited you with a fix!  Do you think you could check something for me? I think that 1.3 may have regressed the fix we made in 1.2 for events and months.  Could you double-check?

    Dan

  • Daniel Horn 319 posts 344 karma points
    Mar 22, 2010 @ 22:29
    Daniel Horn
    0

    Hi again Dan,

    Yeah - I'm going to use your package for smaller business sites as it is almost as I would do things.

    As I recall the problem was that the months is hardcoded, and when we change the months to fx Danish the events won't appear, right?

     

  • Daniel Horn 319 posts 344 karma points
    Mar 22, 2010 @ 22:32
    Daniel Horn
    0

    Isn't it possible to make the calendar more dynamic, so that you can choose timeformat etc.? Have you looked into that?

    Also it could be cool to have the package in different languages - i'm up for translating it to danish? :)

Please Sign in or register to post replies

Write your reply to:

Draft