We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16429
    • 254 Posts
    I need to have the "firstClass" and "lastClass" as ID and not as classes, still mantaining the "hereClass" as class. I try to look in the code but the way to output first and last as classes seems too much embedded in the code for me to modify.
    Con you point me out a way to accomplish this?
      kudo
      www.kudolink.com - webdesign (surprised?)

      [img]http://www.kudolink.com/kudolinkcom.png[/img] [sup]proudly uses[/sup] [img]http://www.kudolink.com/modx.png[/img]
      • 15987
      • 786 Posts
      New Version 1.0 released Get it here: http://modxcms.com/Wayfinder-868.html

      New features include:
      - Updated database query so sorting works correctly for MySql 4.1.12 users
      - Added parameters for determining sortBy and sortOrder
      - Added placeholders for introtext and description
      - Added ability to show count of docs in a folder with new placeholder
      - Removed some code from snippet into class for easier maintenance

      I am planning on a creating a lot of documentation over the next few days with links to active examples and some better how-to’s. Until then, enjoy the update (the basic documentation has been updated in the zip).
        • 15987
        • 786 Posts
        Quote from: kudolink at Oct 23, 2006, 10:30 AM

        I need to have the "firstClass" and "lastClass" as ID and not as classes, still mantaining the "hereClass" as class. I try to look in the code but the way to output first and last as classes seems too much embedded in the code for me to modify.
        Con you point me out a way to accomplish this?

        I will look to see if there is a way to accomplish this. Off the top of my head, I don’t think there is a way to currently do this.
          • 23491 ☆ A M B ☆
          • 1,056 Posts
          Quote from: kylej at Oct 23, 2006, 03:10 PM

          New Version 1.0 released Get it here: http://modxcms.com/Wayfinder-868.html

          - Added parameters for determining sortBy and sortOrder

          @kyle--

          Thank you! Install went great, everything went smoothly! I plan to attempt creating a Wayfinder to output only my root level First 5 Menu Indices, in order.

          Reading through the docs, I am not seeing an easy way to LIMIT to X # of links ...

          e.g.

          Let’s say I had a directory called /articles, and I wanted to output limiting to 5 links to the articles, but it might contain 100+...

          Or..same scenario, what if I wanted to output 5 random links via Wayfinder...that’d be cool..
            Mike Reid - www.pixelchutes.com
            MODx Ambassador / Contributor
            [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
            ________________________________
            Where every pixel matters.
            • 16429
            • 254 Posts
            Quote from: kylej at Oct 23, 2006, 03:11 PM

            I will look to see if there is a way to accomplish this. Off the top of my head, I don’t think there is a way to currently do this.

            Yes, I agree with you, this is why I asked... thank you, take your time.
              kudo
              www.kudolink.com - webdesign (surprised?)

              [img]http://www.kudolink.com/kudolinkcom.png[/img] [sup]proudly uses[/sup] [img]http://www.kudolink.com/modx.png[/img]
              • 15987
              • 786 Posts
              Quote from: pixelchutes at Oct 23, 2006, 05:48 PM

              Reading through the docs, I am not seeing an easy way to LIMIT to X # of links ...

              e.g.

              Let’s say I had a directory called /articles, and I wanted to output limiting to 5 links to the articles, but it might contain 100+...

              Or..same scenario, what if I wanted to output 5 random links via Wayfinder...that’d be cool..

              The limiting of number of items in the menu could be accomplished by using the show in menu flag and only setting the five you want to show.

              The random idea, sounds interesting, I will look into this. If I add that the limit will probably get incorporated too.
                • 26435
                • 1,193 Posts
                For anyone who is trying out the MODx Resource Wizard package installer, I have added an extra to Wayfinder 1.0. It is the snippet packaged as a Resource Wizard "modxpkg". You can get it here.

                later

                -sD-
                Dr. Scotty Delicious, Scientist.
                  Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
                  All of the above... in no specific order.


                  I send pointless little messages
                  • 23050
                  • 1,842 Posts
                  Great Kyle ! Thank you for the new features... Really great ! smiley
                    • 18436
                    • 135 Posts
                    Quote from: kylej at Oct 23, 2006, 06:41 PM

                    Quote from: pixelchutes at Oct 23, 2006, 05:48 PM

                    Reading through the docs, I am not seeing an easy way to LIMIT to X # of links ...

                    e.g.

                    Let’s say I had a directory called /articles, and I wanted to output limiting to 5 links to the articles, but it might contain 100+...

                    Or..same scenario, what if I wanted to output 5 random links via Wayfinder...that’d be cool..

                    The limiting of number of items in the menu could be accomplished by using the show in menu flag and only setting the five you want to show.

                    The random idea, sounds interesting, I will look into this. If I add that the limit will probably get incorporated too.

                    Personally I don’ think using the "show in menu" flag is a very robust solution. I ran into the problem a few days ago where I wanted drop-down links to the 5 latest blog entries and to manually go into the admin and change the flag each time a new post is made just doesn’t make sense.

                    Please consider adding output limitations to wayfinder, perhaps consider adding a parameter to limit the parent items and children items seperately.
                      • 7455
                      • 2,204 Posts
                      Quote from: Marschant at Oct 24, 2006, 03:43 AM

                      Quote from: kylej at Oct 23, 2006, 06:41 PM

                      Quote from: pixelchutes at Oct 23, 2006, 05:48 PM

                      Reading through the docs, I am not seeing an easy way to LIMIT to X # of links ...

                      e.g.

                      Let’s say I had a directory called /articles, and I wanted to output limiting to 5 links to the articles, but it might contain 100+...

                      Or..same scenario, what if I wanted to output 5 random links via Wayfinder...that’d be cool..

                      The limiting of number of items in the menu could be accomplished by using the show in menu flag and only setting the five you want to show.

                      The random idea, sounds interesting, I will look into this. If I add that the limit will probably get incorporated too.

                      Personally I don’ think using the "show in menu" flag is a very robust solution. I ran into the problem a few days ago where I wanted drop-down links to the 5 latest blog entries and to manually go into the admin and change the flag each time a new post is made just doesn’t make sense.

                      Please consider adding output limitations to wayfinder, perhaps consider adding a parameter to limit the parent items and children items seperately.

                      lol if we get more of those great request (lots I like to see myself) then we could almost merge wayfinder and ditto
                        follow me on twitter: @dimmy01

                      This discussion is closed to further replies. Keep calm and carry on.