We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34162
    • 1 Posts
    Based on feedback and various discussions, Snippets and Chunks have been combined into just Snippets, now with exciting new execution options. In addition, fun new features such as colored code highlighters have been added.

    Sneak peaks follow... smiley










    Feedback?

    (And, yes, if you are eagle eyed, the screenshots give away another new feature, too... -hint, hint-)
      • 25663 MODX Staff
      • 12,272 Posts
      And now for the $64K question.... when!?! laugh

      Looking forward to the new bulk page editing features. wink
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 34162
        • 1 Posts
        Quote from: rthrash at Aug 17, 2005, 01:53 AM

        And now for the $64K question.... when!?! laugh

        I’m checking in my changes this week. smiley
          • 33337
          • 3,975 Posts
          Quote from: infoclipper at Aug 17, 2005, 01:39 AM


          (And, yes, if you are eagle eyed, the screenshots give away another new feature, too... -hint, hint-)


          Are you talking about "Access Permission" feature ? or a "Snippet Type" ?

          Well all sounds very interesting to me !! wink

          Best regards,

          zi
            Zaigham R - MODX Professional | Skype | Email | Twitter

            Digging the interwebs for #MODX gems and bringing it to you. modx.link
            • 32963
            • 1,732 Posts
            Look great Travis smiley

            Zi,

            I think the access permission here is the ability or some users to run the snippet inside the Manager. (I think)

            Travis,

            Currently snippets (front-end) can use the "echo" keyword to display text inside the browser using ob_start functions.But this has proven to be a much slower method so I think it should be removed from front-end executions. Such feature can however remain for the Manager

              xWisdom
              www.xwisdomhtml.com
              The fear of the Lord is the beginning of wisdom:
              MODx Co-Founder - Create and do more with less.
              • 25663 MODX Staff
              • 12,272 Posts
              What if the access permissions were tied too the users/groups so that said snippets were only shown on the front end when members of those groups were logged in? This would enable us to not only show/hide parts of pages in addition to the entire page itself.

              Not that I have any inside information or anything of course! wink
                Ryan Thrash, MODX Co-Founder
                Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                • 1764
                • 680 Posts
                Very cool! I think this will be much more handy and helps to simplify things for developers, editors and designers.

                I was wondering, are the properties gong to apply to Plain HTML snippets at all? I was thinking we could assign the properties as placeholders and be able to include them in the HTML, what do you think?
                  • 25663 MODX Staff
                  • 12,272 Posts
                  Ummm... can you type that again real slow, maybe with an example? :blink:
                    Ryan Thrash, MODX Co-Founder
                    Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                    • 32963
                    • 1,732 Posts
                    Quote from: aNoble at Aug 17, 2005, 09:29 AM

                    I was wondering, are the properties gong to apply to Plain HTML snippets at all? I was thinking we could assign the properties as placeholders and be able to include them in the HTML, what do you think?

                    Excellent idea Adam,

                    Also consider this:

                    [[HelloWorld? &color=`#ffcc00` &width=`200px`]]

                    where will pass the parameter &color into the HTML snippet as a placeholder:

                    <div style="color:[+color+];width:[+width+]">Hello World</div>


                      xWisdom
                      www.xwisdomhtml.com
                      The fear of the Lord is the beginning of wisdom:
                      MODx Co-Founder - Create and do more with less.
                      • 25663 MODX Staff
                      • 12,272 Posts
                      LOL

                      Raymond, that is too cool and too helpful!
                        Ryan Thrash, MODX Co-Founder
                        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me