1

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

2

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

2

Low Alphabet was created for this exact purpose.

1
  • I can confirm that it works great and is a treat to use. Go check it out! – Brett Burwell Feb 5 '14 at 2:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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