Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Resource not found - Linking pages

Avatar

Level 1

Hi,

I'm quite new with AEM and have encountered an issue that has left we quite stuck.

I'm using a NAV component to link my pages together however when I click the pages in preview I encounter an error:-

"Resource at '/content/stan/home-page/ContentSherlock.html' not found: No resource found

Cannot serve request to /content/stan/home-page/ContentSherlock.html in /libs/sling/servlet/errorhandler/404.jsp"

This is my nav component html -

<div data-sly-use.topnav="site-topnav.js">

    <nav>

      <a href="${topnav.root.path}.html">Home</a>

<ul>

                <li data-sly-repeat="${topnav.items}">

                    <a href="${item.path}.html">${item.title}</a>

                </li>

            </ul>

    </nav>

</div>

<a href="${topnav.root.path}/home-page.html"> </a>

This is the html at the top of each pages body.html -

    <div  data-sly-resource="${'site-topnav' @ resourceType='dig20011/components/structure/site-topnav'}></div>

Do I need to also use a sling to each page?

Thanks,

Amy.

0 Replies