Using an index block from another site

Kelvin Howard's Avatar

Kelvin Howard

13 Sep, 2010 05:36 PM

I have the same question as this post:
http://help.hannonhill.com/discussions/how-do-i/4-using-an-index-bl...

I am using the format that comes with the system found at _common/formats/navigation/content-navigation
I believe this is the line I need to change

<xsl:attribute name="href">
    <xsl:choose>
        <xsl:when test="system-page[name = $defaultPage]">
            <xsl:value-of select="system-page[name = $defaultPage]/path"/>
        </xsl:when>
      <xsl:otherwise>
          <xsl:value-of select="system-page[1]/path"/>
      </xsl:otherwise>
    </xsl:choose>
</xsl:attribute>

However, changing path to link does not work here.

Could you let me know what I am missing?

Thank you

  1. Support Staff 1 Posted by Tim on 13 Sep, 2010 05:44 PM

    Tim's Avatar

    Hi Kelvin,

    You mentioned that changing <path> to <link> doesn't work. What does the generated link look like in the source code? Are you saying it's not outputting a link at all? Or, is it simply generating a link you aren't expecting?

    Also, in the Site that you are getting the Index Block from, have you verified that the URL is set correctly for that Site? You can check by clicking System Menu -> Site Management and then clicking Edit on the Site in question.

  2. 2 Posted by Kelvin Howard on 16 Sep, 2010 03:52 AM

    Kelvin Howard's Avatar

    Tim, sorry for the delayed response on my end. I went back and had another look. It was producing nothing and was because the URL was set incorrectly. Thank you for great tip. You all are great.

    Blessings,

    Kelvin

  3. Support Staff 3 Posted by Tim on 16 Sep, 2010 02:22 PM

    Tim's Avatar

    Perfect! Glad I was able to help. Have a good one Kelvin!

  4. Tim closed this discussion on 16 Sep, 2010 02:22 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac