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.

Subnav problems

November 21, 2010 4:59pm

Subscribe [1]
  • #1 / Nov 21, 2010 4:59pm

    drinn

    3 posts

    Hi all!

    I am dealing with a subnav, which has following structure:

    Spine Concept (/medical-concepts/spine-concept/)
      Medical background (/medical-concepts/spine-concept/medical-background/)
      Equipment
      Additional equipment
      Technology (technology should forward to /technology/ site, how to?)
    Hip- and Knee concept
      Medical background
      Equipment
      Additional equipment
      Technology
    Therapy Solution
      Equipment
      Additional equipment
      Technology

    It works well, but if I select Spine Concept it shows all the subnav content like shown the list above, so I want it to only show Spine Concept’s content, and to hide rest when /spine-concept/ page is active. Like the following way below:

    Spine Concept
      Medical background
      Equipment
      Additional equipment
      Technology
    Hip- and Knee concept
    Therapy Solution

    And same goes with Hip- and Knee concept & Therapy Solution categories.

    The code of the current subnav is:

    {if segment_3==""}
    <h1>Medical concepts - Spine concept</h1>
    ..
    {embed="embed/content-right"}
    {if:else}
        {exp:weblog:entries weblog="medical" limit="1" orderby="date" sort="asc" disable="pagination|trackbacks"}
        <div class="productinfo">
            <h1>{title}</h1>
            {medical_teksti}
        </div>
        {/exp:weblog:entries}
    {/if}
    <section id="subnav">
        {exp:weblog:categories weblog="medical" limit="1" category_group="3" style="linear"}
        <a href="http://{site_url}medical-concepts/{category_url_title}" title="{segment_3}" class="subnav1">{category_name}</a>
        
            {exp:weblog:entries weblog="medical" category_group="3" category="{category_id}" dynamic="off" orderby="date" sort="asc" disable="trackbacks"}
            <a href="http://{site_url}medical-concepts/spine-concept/{url_title}" class="subnav2">{title}</a>
            {/exp:weblog:entries}
        
        {/exp:weblog:categories}
    </section> <!-- subnav -->

    I am using EECore 1.6.8.


    Thanks for the help

    -Antti

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

ExpressionEngine News!

#eecms, #events, #releases