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.

How to Create a Glossary?

August 31, 2011 6:28pm

Subscribe [2]
  • #1 / Aug 31, 2011 6:28pm

    scnetworks

    6 posts

    I’m new to EE and have been trying for days to create a “Glossary” for Terms & Definitions that will become a large part of my site. I’ve followed the instructions in trying to create the channels, groups, etc. - but it just does not click.

    Would anyone know where to find a tutorial on how to build a Glossary within EE2?

    An example would be say for “Glossary of Terms & Definitions for the House.”

    Something like:

    Glossary

    - Plumbing

        - Faucet (Definition)
        - Channel Locks (Definition)
        - Washer (Definition)

    - Electrical

        - Outlet (Definition)
        - Light Switch (Definition)
        - Light Bulb (Definition)

    Many more categories with nested definitions. Any help is greatly appreciated. I think I’d even buy a video tutorial on the basics if the community thought it would help. I’d really like to come up to speed on developing in EE.

    Thank you in advance -

    SCnetworks

  • #2 / Sep 01, 2011 4:56am

    John Henry Donovan

    12339 posts

    Hi scnetworks,

    A Glossary if perfect for a Channel - Categories - Entries setup

    So from your example if you think of your Channel as the Glossary. So a a channel is just a bucket of information

    Each entry we add to that Channel will be a definition and we can categorize that definition using our categories


    Glossary channel

    - Plumbing category

      - Faucet (Definition) entry
      - Channel Locks (Definition) entry
      - Washer (Definition) entry

    So a typical workflow would be to create your Channel
    Then create your Categories group and add your categories (Plumbing, Electrical etc)

    Next create a Custom field group and add any field you need. The most obvious is the definition field as a textarea.

    Now go back to your channels and under the Channel Group Assignments add the category group and custom field group you just created.

    So now we have our Channel with a category group and some fields defined so we can add our entries.

    If you now goto the Publish -> Glossary you get a form to enter you Glossary item and get to choose the correct category

    For a super simple way to show this in a template use the Category Archive Tag

    {exp:channel:category_archive channel="glossary" style="linear"}
    
    {categories}
    <h3>{category_name}</h3>
    <p>{if category_description}{category_description}{/if}<br />
    {/categories}</p>
    
    <p>{entry_titles}<br />
    <a href="http://{path=SITE_INDEX}">{title}</a></p>
    
    <p>{/entry_titles}</p>
    
    <p>{/exp:channel:category_archive}

    let us know if that helps clear up some things for you or if you have any more questions

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

ExpressionEngine News!

#eecms, #events, #releases