ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Wrong path generated

November 29, 2011 4:59am

Subscribe [1]
  • #1 / Nov 29, 2011 4:59am

    Kaspar

    30 posts

    Hi I’m creating a menu based on one of your blog posts.

    The code looks like this:

    <ul>
        <li {if embed:loc == 'here'}class="current"{/if}><a href="http://{path=site/index}">Home</a></li>
        <li {if embed:loc == 'there'}class="current"{/if}><a href="http://{path=showreel/index}">Showreel</a></li>
        <li {if embed:loc == 'elsewhere'}class="current"{/if}><a href="http://{path=blog/index}">Blog</a></li>
    </ul>

    So now what happen is that instead of linking to: localhost/rooturl/showreel
    It ads: localhost/rooturl/home/showreel

    I don’t understand where this “home” is coming from? I work locally on MAMP. Do I have to specify some path settings?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases