We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5340
    • 1,624 Posts
    @OpenGeek
    so is it safe to assume that:
    - an official update to latest mootools won’t be made for at least 6 months if not more
    - pepebe’s changes won’t go official for at least 6 months
    ?

    Thx



      • 22303 MODX Staff
      • 10,725 Posts
      Quote from: xpix at Mar 01, 2009, 09:20 AM

      so is it safe to assume that:
      - an official update to latest mootools won’t be made for at least 6 months if not more
      - pepebe’s changes won’t go official for at least 6 months
      ?
      Markup, CSS, and Javascript changes to the 0.9.6/Evolution manager certainly do not count as "significant changes that would complicate the 0.9.6.x/Evolution1.0-to-Revolution2.0 migration paths". The Revolution manager is built on ExtJS and the differences there will already require that any custom manager components be reimplemented to work with the new code.

      Some changes may be delayed or reworked if they do unnecessarily complicate site migrations without benefits to both Evolution and Revolution in some way.
        • 23018
        • 353 Posts
        Another update.

        Toda I got a mail from ncrossland (the person responsible for managermanager). He’ll have a look at the changes and seems basically in favour of my ideas. I’ll postpone any new updates or features until I have some feedback how to proceed without messing around with his work.

        Talking about new features. Is it ok to add some new tables to the database? I would like to treat the core variables like the template variables and want to set up a similar structure. This would make it possible to sort variables or to stick them to different tabs.

        Another thing: Where can I find basic documentation about functions, tables and variables. What I have found until now isn’t very helpful...

        Keep the faith

        pepebe
          Homepage: pepebe.de | MODX snippets (and other stuff) at github: https://gist.github.com/pepebe
          • 29774
          • 386 Posts
          Please don’t add new tables. Moving fields to tabs and cleaning up the markup is a presentational issue unrelated to the underlying data model. There are already mechanisms for storing configuration variables (plugins and modules).
            Snippets: GoogleMap | FileDetails | Related Plugin: SSL
            • 23018
            • 353 Posts
            I wouldn’t touch the existing tables. It’s just that I have noticed that it would be neat, if the output of the core variables could be handled like the one for the template variables.

            Example:

            The "tmplvars" table contains a bunch of useful values e.g.

            id              (unique id)
            type            (date, rich text, image...)
            name            (variable name)
            caption         (name in forms)
            description     (a description or helptext)
            editor_type     (0-plain text,1-rich text,2-code editor. I suppose this should be a trigger if tinymce kicks in, but I don't think it work that way)
            category        (category id)
            locked          (or not)
            elements        (needed for checkboxes, select fields and radio buttons)
            rank            (order of appearance within the template variables form. I also think that this always works as expected)
            display         (used to transfor input to a different format. For example transform date input into unixtime)
            display_params  (a list of tag attributes as for example height, width oder edt=TinyMCE)
            default_text    (Could be useful to insert "Input required" into a form field)


            Handy. Why don’t we have a "corvars" table?

            Right now most of those parameters are hardcoded into mutate_content.dynamic.php. For each and every variable included into the output there is a complete html tag spiced up with some php to fill in the values. There is no way to change the order of appearance, to move a variable from one tab to another or to prevent it from appearing.

            tmplvars.inc.php however is more versatile and can be customized more easily. Whats wrong with changing part of the code so it can look upwhether longtitle is a textfield or just text? tmplvars has to do it all the time.

            I think it would be much more convinient to go to ressources -> manage ressources -> "core variables". We would have a list there with some (not all) of the document specific "core variables". Hit "introtext" and change its name in the form from "Summary(Introtext)" to "synopsis". Add a descriptive text and set default text like for example "required". Note, though you can change the variables caption, you are not alowed to change the internaly used variable name.

            Now go back to "templates" choose a template and hit the "assign variables tab". Here you will find two scrollable textfields the one on the left containing all variables (core and template). The left one empty apart from some default values, that cannot be changed but set to "readonly". Drag and drop the necessary variables to the right. Move them up or down. Insert spacers (representing a tab) and give those tabs a name. The Default behavious could be the one we already have, so you wouldn’t have to do anything if you are find with the situation. If not. Go ahead.

            The advantage would be that you can create "unique" document items like for examples "Quote of the day" or "image with caption and title".

            Of course it might be necessary to remove some variables from the selection. For example: A documents unique ID should be a system decision.

            A problem I see, is that we would have to think about the difference of template and layout. As I understand it right now, they mean about the same (something I still have a problem to understand. Though it has it’s advantages, it feels queer).

            I have to admit, that most of the functionality could be accomplished by a a couple of two-dimensional arrays. But using a database would make it easier for plugin developers to add additional funtionalities.

            Regards,

            pepebe
              Homepage: pepebe.de | MODX snippets (and other stuff) at github: https://gist.github.com/pepebe
              • 22303 MODX Staff
              • 10,725 Posts
              Let’s not get into changing data structures in MODx Evolution, and try and stick with cosmetic/usability changes. There are plenty of opportunities to address new features in MODx Revolution. As mentioned earlier in this thread, I’d like to keep Evolution in basically the state it is in, at least until after 1.0 and 2.0 releases are out the door.

              As part of the roadmap, all appropriate content fields will be turned into Elements similar to TV’s that can be stored by language as well as versioned. This is planned for the 2.1 release and is referred to as Resource Elements.

              I suggest getting involved in Revolution testing and/or development so you understand where MODx is going as well as why I do not want major changes made to the Evolution branch at this time.
                • 23018
                • 353 Posts
                I see. Thanks. I’ll stick to cosmetic changes then.

                pepebe
                  Homepage: pepebe.de | MODX snippets (and other stuff) at github: https://gist.github.com/pepebe
                  • 23018
                  • 353 Posts
                  Update:

                  I have been very busy in the last two weeks, so sorry there is nothing new. Anybody out there who installed the "update"? I would appreciate some feedback.

                  Regards,

                  pepebe
                    Homepage: pepebe.de | MODX snippets (and other stuff) at github: https://gist.github.com/pepebe
                    • 23018
                    • 353 Posts
                    I’m still busy and on top of it, there MIGHT be a problem with my changed files. In IE and Opera documents move up the document tree whenever I safe them in either IE or OPERA (http://modxcms.com/forums/index.php/topic,35257.0.html). This doesnt happen in FF though, so I didn’t noticed it until yesterday. I’m not sure if it is really related.

                    The bright side of it is, that I have to work on this project again...

                    Regards,

                    pepebe
                      Homepage: pepebe.de | MODX snippets (and other stuff) at github: https://gist.github.com/pepebe
                      • 33337
                      • 3,975 Posts
                      pepebe, great news.

                      Looking forward to it.
                        Zaigham R - MODX Professional | Skype | Email | Twitter

                        Digging the interwebs for #MODX gems and bringing it to you. modx.link