Posted By

ryarwood on 03/12/11


Tagged

php navigation detection ee ExpressionEngine


Versions (?)

ExpressionEngine Navigation Example


 / Published in: PHP
 

Basic expressionengine navigation. Has detection for section and some dynamic links.

  1. {exp:channel:entries channel="communities" limit="1"}
  2.  
  3. <div id="nav-comm">
  4. <ul>
  5. <li {if "{segment_2}" == "photo-gallery"}id="current"{/if}><a href="{title_permalink="communities-mobile/photo-gallery"}">Photos</a></li>
  6. <li {if "{segment_2}" == "floor-plans"}id="current"{/if}><a href="{title_permalink="communities-mobile/floor-plans"}">Floor Plans</a></li>
  7. <li {if "{segment_2}" == "amenities"}id="current"{/if}><a href="{title_permalink="communities-mobile/amenities"}">Amenities</a></li>
  8. <li {if "{segment_2}" == "location-map"}id="current"{/if}><a href="{title_permalink="communities-mobile/location-map"}">Location Map</a></li>
  9. <li {if "{segment_2}" == "schedule-tour" OR "{segment_2}" == "schedule-tour-thanks"}id="current"{/if}><a href="{title_permalink="communities-mobile/schedule-tour"}">Schedule A Visit</a></li>
  10. <li><img src="/images/m/nav-phone.gif" width="11" height="20" alt="" id="phone" /><a href="tel:{community-phone}">&nbsp;&nbsp;&nbsp;Call {community-phone}</a></li>
  11. </ul>
  12. </div>
  13.  
  14. <div id="footer-address">{community-address}<br />{community-city}, {community-state} {community-zip}<br />{community-hours}</div>
  15.  
  16. {/exp:channel:entries}

Report this snippet  

You need to login to post a comment.