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.

Plug In: AtoZ

September 09, 2008 1:51pm

Subscribe [2]
  • #1 / Sep 09, 2008 1:51pm

    Sean Gates

    123 posts

    This is my first stab at a plug in for EE, and I don’t think I did things correctly (in fact I know I didn’t based upon the amount of time I spent on it), but here goes.

    The AtoZ plug in allow you to create an A to Z list of the items in a weblog in an easy way.  It is so simple it does not have support for any other EE tags inside of it.  Here is an example:

    {exp:atoz weblog="my_weblog" field_name="custom_fieldname"}
        Found: {letter}
    
        {if no_results}
            Not found: {letter}
    
        {/if}
    {/exp:atoz}

    A more extensive example would be to use some formatting and HTML links to further enhance it:

    <ul>
    {exp:atoz weblog="my_weblog" field_name="custom_fieldname"}
        <li><a href="/index.php/my_weblog/{letter}">{letter}</a></li>
        {if no_results}
            <li><span>{letter}</span></li>
        {/if}
    {/exp:atoz}
    </ul>

    Parameters
      - weblog=“my_weblog”
      - field_name=“custom_fieldname” or field_name=“title”

    Variables
      - {letter} (any letter from A to Z)

    I would like some honest feedback about it since it is my first plug in.  I know there is a way to allow other EE tags to parse inside of the {exp:atoz} tags but have not had the time to devote to this plug in.  Also, I know I need support for the {path=""} variable in the least.

    Thanks!

    [Mod Edit: Moved to the General forum]

  • #2 / Sep 09, 2008 4:24pm

    Ingmar

    29245 posts

    Just for the record, there’s already an extension with a very similar name…

  • #3 / Sep 09, 2008 4:34pm

    Sean Gates

    123 posts

    Without a working example on his site I don’t see how our are similar.  His is for listing weblog entries, where my plugin allows for an A to Z quick list.  No weblog entries involved.

    Also, his modifies the exp_weblog_entries table, whereas my plug in does not.

    Am I seeing something different than that?

    Thanks!
    Sean

  • #4 / Sep 09, 2008 4:37pm

    Ingmar

    29245 posts

    No, I just meant the name has potential for confusion, that’s all.

  • #5 / Sep 09, 2008 4:37pm

    Sean Gates

    123 posts

    Gotcha!

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

ExpressionEngine News!

#eecms, #events, #releases