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]