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.

loc="" - for static pages that share template

August 20, 2010 2:27am

Subscribe [1]
  • #1 / Aug 20, 2010 2:27am

    martaspendowska

    41 posts

    Hi,
    I have a question about marking up the loc=”” for multiple static pages that share the same template.

    My static Pages module has three pages : about , services, contact.
    My embed navigation: {embed="global_embeds/.top_nav" loc="about" } displays about page.
    I tried : {embed="global_embeds/.top_nav" loc="about|services" }, but it doesn’t work..

    I am asking about this, because I have the current state for pages css-ed, but can’t figure out how to display the services with it:

    <li id="home" {if embed:loc== "home"}class="cur"{/if}><a href="http://{homepage}">Home</a></li>
            <li id="about" {if embed:loc=="about"}class="cur"{/if}><a href="http://{path=/about}">About</a></li>
        <li id="contact" {if embed:loc=="contact"}class="cur"{/if}><a href="http://{path=/contact}">Contact</a></li>
        <li id="services" {if embed:loc=="services"}class="cur"{/if}><a href="http://{path=/services}">Services</a></li>
        <li id="design" {if embed:loc=="design"}class="cur"{/if}><a href="http://{path=/design}">Design</a></li>


    Thank you,
    Marta

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

ExpressionEngine News!

#eecms, #events, #releases