We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23058
    • 17 Posts
    To include the snippet it is a need to make the snippet available in the specified area and save it, the also include it via PHP-Tag include ("snippet.php"); ?
      • 87
      • 51 Posts
      anyway to make it come up with a few listings by default, instead of getting to the page and it saying "please select a letter" already have a few up there and that will dissapear when they push a letter?
        • 87
        • 51 Posts
        Ok instead of calling the page with AtoZ on it , I just added the letter part of it to the url within Wayfinder.
        I’m curious if I could have a selection instead of "ALL" or a Letter, if it would be possible to put certain doc id’s so when the listing is accessed i could control which listings comes up first.
          • 30596
          • 19 Posts
          Is there a way to remove "ALL" as one of the choices for the A to Z listing. We have a lot of articles and I am concerned that if someone chose ALL there could be a problem. I would appreciate any help.
            • 30596
            • 19 Posts
            Quote from: tres6 at May 21, 2008, 08:49 PM

            Is there a way to remove "ALL" as one of the choices for the A to Z listing. We have a lot of articles and I am concerned that if someone chose ALL there could be a problem. I would appreciate any help.

            Answered my own question on this one too - sorry. I just pulled ALL out of the array and having no problems. If I knew just a tiny bit more about programming it sure would help me not wasting people’s time (especially my own).
              • 26931
              • 2,314 Posts
              Hi there,

              would this snippet theoretically work with modx 0.9.6.3 .... i just tried without luck

              thanks, j
                • 13481
                • 97 Posts
                Quote from: sharkbait at Jun 11, 2009, 12:12 PM

                Hi there,

                would this snippet theoretically work with modx 0.9.6.3 .... i just tried without luck

                thanks, j

                I was having the same problem. Instead of using the placeholders, I ended up modifying the snippet to just echo out the content:

                Add:

                echo $atozletters;
                echo $atozresults;


                above or below:

                $modx->setPlaceholder('atozletters', $atozletters);
                $modx->setPlaceholder('atozresults', $atozresults);


                Someone also asked how to get this snippet to show default content. If you change line 58 to:

                $letter = (isset ($_GET['letter'])) ? stripslashes($_GET['letter']) : $letter;


                Then you can set a default letter in the snippet call like:
                [!AtoZ?startid=`0`&letter=`F`!]


                or

                [!AtoZ?startid=`0`&letter=`ALL`!]


                Another thing I figured out is that AtoZ listing will not list ANY documents that are privately accessible. You can modify the snippet to display private elements by removing instances of "privateweb=0" in the mysql queries. It works, but do it at your own risk since it shows all documents regardless of privacy settings. The snippet should really be modified to work with MODx’s security model.

                James



                  • 16702 ☆ A M B ☆
                  • 536 Posts
                  is there have some chance to counting and paginations? rolleyes rolleyes
                    palma non sine pulvere
                    • 26931
                    • 2,314 Posts
                      • 16702 ☆ A M B ☆
                      • 536 Posts
                      Quote from: sharkbait at Jul 23, 2010, 04:20 AM

                      Hi Kristalin,

                      check out Dittos Glossary Extender http://setpro.pl/software/ditto-stuff/glossary-extender / http://modxcms.com/forums/index.php?topic=51018.0 or the A2Z Snippet http://modxcms.com/forums/index.php/topic,36667.0.html

                      thanks a lot, sharkbait!
                      first one from SetPRO is perfect solution for me! great! have a perfect, nice day smiley
                        palma non sine pulvere