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.

Creating FAQ page with categories

September 14, 2010 10:47am

Subscribe [1]
  • #1 / Sep 14, 2010 10:47am

    digital1

    25 posts

    I am trying to create an FAQ page for multiple store locations within EE2.1. So my thinking is to assign the Category Group that has all of the stores listed to a FAQ Channel.

    Many of the locations will share the same Questions so I am assigning each Channel Entry to a Location category (i.e. city). So when I create the navigation link for each Location, the Questions assigned to that specific Category will be displayed on the appropriate Location page via URL Segment (/template_group/template/location/).  What is the best way to set this up? I can’t get the specific Questions assigned to the Category to display based on the URL. I know I am missing something.

    Here is some of the code I have. I tried adding category=”” (which is all of the store locations):

    <ul class="section_menu">
        {!-- The titles of the faq channel are the questions --}
        {exp:channel:entries channel="faq" disable="member_data|comments|trackbacks|pagination" show_future_entries="yes"  show_expired="yes" orderby="entry_id" sort="asc" category="4|5|6|7|8|9|13"}
        <li><a href="#{title}">{title}</a></li>
        {/exp:channel:entries}
             </ul>
    
    
        {!-- Answers go here --}
     <dl class="faq">
            {exp:channel:entries channel="faq" disable="member_data|comments|trackbacks|pagination" show_future_entries="yes"  show_expired="yes"  orderby="entry_id" sort="asc" category="4|5|6|7|8|9|13"}
        <dt id="{title}">{title}</dt>
        <dd>{answer}</dd>    
     
        {/exp:channel:entries}

    Thanks! Jeff.

  • #2 / Sep 14, 2010 8:53pm

    Brandon Jones

    5500 posts

    Hi Jeff,

    There are probably multiple approaches here and EE is working as expected, so I’ll move this over to the CodeShare Corner to get you further ideas. Thanks.

  • #3 / Sep 15, 2010 5:00pm

    digital1

    25 posts

    Thanks, I had help figuring it out using the Low Seg2Cat plugin.

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

ExpressionEngine News!

#eecms, #events, #releases