Take the 2-minute tour ×
ExpressionEngine® Answers is a question and answer site for administrators, end users, developers and designers for ExpressionEngine® CMS. It's 100% free, no registration required.

sorry again for my bad english...

i'd like to create a A-Z list for my entries (recipes) and show them if i click on the related letter. This code below showing entries by first letter and it's ok but how can i show also empty letters as well?

<?php $temp = ''; ?>
    {exp:channel:entries channel="recipes" orderby="title" sort="asc"}
    <?php
    $letter = strtoupper(substr('{title}', 0, 1));
    if ($temp != $letter) {
        echo "<button data-role='letter-loader' class='button-big button-overlay'>" . $letter . "</button>";
        $temp = $letter;
    }
    ?>
    {/exp:channel:entries}

i need something like this, where inactive letters are showing as well: enter image description here

Thank you all

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

Low Alphabet is great and you will get excactly wat you want

share|improve this answer
add comment

Low Alphabet was created for this exact purpose.

share|improve this answer
    
I can confirm that it works great and is a treat to use. Go check it out! –  Brett Burwell Feb 5 at 2:26
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.