We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28215
    • 4,149 Posts
    Quote from: erikp at Aug 20, 2009, 04:36 AM

    splittingred: The main problem with linking to other Contexts (or sub-branches in evolution) is that you cannot go back. So if I am on mysite.be/home and click on mysite.be/software and this latter site is a dutch page, I am linked to mysite.nl/software. Now this is not so much of a problem, but if I click on ’home’ again, i’m linked to mysite.nl/home which is bad. I fixed this currently by replacing all links, using plugins on the prerender event, but it’s all not very ideal.
    Sounds like you just need to create a Context setting for your ’nl’ Context that changes the "site_start" setting ID to the ID of the .be home page. Then make your links to the home page in all your contexts be to [[++site_start]], and the Context will grab the .be home page.

    Maybe I don’t understand contexts well enough; in what way are they essentially different from the ’containers’ in evolution?
    Quite - they can have entirely different Settings, can be "initialized" in different locations, can have entirely new security policies, etc.


    The symlink/weblink discussion is very typical. To YOU those are two totally different things. To the end user (my copywriters), I’m pretty sure I’m going to have a hard time explaining the difference between the two. They are both links, but behave slightly different.
    Fair enough - do you have any ideas on how to remedy that?

    (regarding the logout, top-right is fine I would say?)
    I thought that too - but users kept posting JIRA requests asking for it in the menu. tongue


    Ok my point was not that there should be MORE docs. I know your time is limited. I’m just saying tutorials and getting starteds are probably worth more than feature-based docs. That, and a superb API ref that can be auto-generated. This is the same problem as above: think process-based, not feature-based.
    The API is already done, and is based off of phpDocumentor:

    http://api.modxcms.com/

    Thanks for your time, erik.
      shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
      • 22887
      • 51 Posts
      Quote from: splittingred at Aug 20, 2009, 05:57 AM

      Quote from: erikp at Aug 20, 2009, 04:36 AM

      splittingred: The main problem with linking to other Contexts (or sub-branches in evolution) is that you cannot go back. So if I am on mysite.be/home and click on mysite.be/software and this latter site is a dutch page, I am linked to mysite.nl/software. Now this is not so much of a problem, but if I click on ’home’ again, i’m linked to mysite.nl/home which is bad. I fixed this currently by replacing all links, using plugins on the prerender event, but it’s all not very ideal.
      Sounds like you just need to create a Context setting for your ’nl’ Context that changes the "site_start" setting ID to the ID of the .be home page. Then make your links to the home page in all your contexts be to [[++site_start]], and the Context will grab the .be home page.

      And if you do this, please tell me if everything still works fine for you.
      I’ve been working with contexts for a while (in a testing environment) and have continuously been confronted with the same problem:
      After I change a system setting, or create a context setting, at first everything seems to be fine. But when I log out, I can no longer log in to the manager.

      I’m very interested to find out if you have the same problem or not.
        • 16183
        • 1,390 Posts
        Quote from: erikp at Aug 20, 2009, 04:36 AM


        Regarding the docs
        Ok my point was not that there should be MORE docs. I know your time is limited. I’m just saying tutorials and getting starteds are probably worth more than feature-based docs.....think process-based, not feature-based.

        I have been thinking about this a lot for the last couple of weeks and I somewhat agree with you. I have been asking myself, what type of Docs do people want? Are these Docs (or lack of them) part of the reason why adoption of Revo is still slow? I even had a chat about this with a community member. My conclusion is that in tandem with the main feature-based Docs, we need the how-to’s, getting starteds, quick overviews, videos and similar. For instance, Can I create a blog in Revo? If so, how? How can I aggregate documents?, etc.

        I have therefore made a decision to "forget" MODx Evolution for the time being and totally concentrate on MODx Revolution. My goal is to set aside as much time as I can to write/make MODx Revo short tuts that will help adopters to quickly find their footing with Revo. My hope and plan is to concentrate on Revo in general (none of the technical stuff for the moment), key snippets such as Wayfinder, getResources and Quip and features such as property sets, how to do this or that in Revo, etc. Hopefully, I will start this very soon, (maybe one step at a time).

        Now that the cat is out of the bag, a few of you will probably hold me accountable smiley or even better, offer concrete advice. laugh

        cheers/k
          • 3749
          • 24,544 Posts
          Quote from: erikp at Aug 20, 2009, 04:36 AM

          Regarding the docs
          Ok my point was not that there should be MORE docs. I know your time is limited. I’m just saying tutorials and getting starteds are probably worth more than feature-based docs. That, and a superb API ref that can be auto-generated. This is the same problem as above: think process-based, not feature-based.
          It seems like I’ve been fighting against feature-based docs forever -- Starting with the help system in the original version of MS-Word. wink

          They’re so easy to write and so completely frustrating and useless much of the time. I’m afraid phpDocumenter contributes to this since it’s almost impossible to use it and end up with process-based information.

          Another problem with phpDocumenter as often used is that you get a brief description of a method, the arguments and return value, but no information about when or why you would use it, what other methods you’d use with it, and, usually, no example. What you get serves as a good reminder for people who already know the platform but not much help for people trying to learn it.
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 21257 MODX Staff
            • 730 Posts
            kongondo, I think one of the things that’s hard to get one’s head around when thinking about "how to" docs in MODx, even in Evo, is the fact that there are many different ways of accomplishing something. I’m talking about major differences in architecture choices, different ways of thinking about things, to realize a similar goal. If you do a "how to make a blog" then 90% of the readers/viewers might think "ok, that’s what a MODx blog is", when really, it’s just one way that one person decided to do something that day.
            Perhaps one way of simplifying would be to determine your target audience first - are they complete newbies, are they designers with some html/css knowledge, are they familiar with core Evo snippets, are they competent php coders who don’t know MODx core concepts yet.. Each audience needs a very different set of information to keep them engaged and actually learning. Keeping this audience in mind, and stating it up front, might be a way to keep yourself on point, and to mitigate the risk of turning anyone off. (Maybe it’s possible to reach several targets at once.. that would indeed be impressive!)
              Mike Schell
              Lead Developer, MODX Cloud
              Email: [email protected]
              GitHub: https://github.com/netProphET/
              Twitter: @mkschell
              • 16183
              • 1,390 Posts
              Quote from: netProphET at Aug 20, 2009, 05:15 PM

              kongondo, I think one of the things that’s hard to get one’s head around when thinking about "how to" docs in MODx, even in Evo, is the fact that there are many different ways of accomplishing something. I’m talking about major differences in architecture choices, different ways of thinking about things, to realize a similar goal. If you do a "how to make a blog" then 90% of the readers/viewers might think "ok, that’s what a MODx blog is", when really, it’s just one way that one person decided to do something that day.
              Perhaps one way of simplifying would be to determine your target audience first - are they complete newbies, are they designers with some html/css knowledge, are they familiar with core Evo snippets, are they competent php coders who don’t know MODx core concepts yet.. Each audience needs a very different set of information to keep them engaged and actually learning. Keeping this audience in mind, and stating it up front, might be a way to keep yourself on point, and to mitigate the risk of turning anyone off. (Maybe it’s possible to reach several targets at once.. that would indeed be impressive!)

              nP

              You raise some very valid points here. Choosing a target audience or 2 audiences (at most?) is something I’ll definitely have to think about upfront. With Evo this would have been probably easier since we already have different types of users. With Revo, I am guessing that most belong to the "newbies" category. Even then, the demarcation goes deeper; designers, developers, those in between, etc...I’ll need to give a careful thought this. I have an idea or two, but am not there yet. Many thanks for your suggestions smiley

              cheers/k
                • 9021
                • 40 Posts
                kongondo: seems like you’re on the right track wink

                In my humble opinion, I think it’s the job of the _framework_ to offer limitedless flexibility. So this does not mean you shouldn’t offer guidelines and tips on how to do things. You can’t just throw people a big toolbox and say "hey we made the tools and I don’t care which tool you use, bye!!". Even very experienced users expect standards.

                Take the bloggers-example. I’m talking the standard blog here, as simple as you get it. Maybe there are a million ways to set up something like that in modx. However, there is most likely not more than 2-3 _best_ ways to do it. Probably there’s only one. From these few ways, just take an example, make a tut from it and mention at the end that there are other ways to do it. Part of the reason I read tutorials is because I want to see what the best practices are.

                In this thread people seem to hide a little bit behind the flexibility of modx. Flexibility can be a curse too! I’m an experienced php programmer but even I want to do things the ’standard’ way, and if I cannot find the ’standard’ way in modx, I feel a little lost. Also consider the discussion above about different languages. Should I use contexts? Or folders? The modx dev team answer could be: "You can use both, isn’t it lovely?". But that’s not the right answer because there are pro’s and cons for different techniques that I cannot see yet, especially in the long run. The same goes for blogging systems, and also the question where I should put my assets (css/js).

                well, good luck y’all!
                  • 16183
                  • 1,390 Posts
                  @erik,

                  Thx for the feedback smiley

                  cheers/k
                    • 28215
                    • 4,149 Posts
                    Quote from: paz at Aug 20, 2009, 06:29 AM

                    And if you do this, please tell me if everything still works fine for you.
                    I’ve been working with contexts for a while (in a testing environment) and have continuously been confronted with the same problem:
                    After I change a system setting, or create a context setting, at first everything seems to be fine. But when I log out, I can no longer log in to the manager.
                    I’m very interested to find out if you have the same problem or not.
                    I definitely do not have that problem; could you file that in JIRA?
                      shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
                      • 28215
                      • 4,149 Posts
                      Quote from: erikp at Aug 21, 2009, 02:46 AM

                      In my humble opinion, I think it’s the job of the _framework_ to offer limitedless flexibility. So this does not mean you shouldn’t offer guidelines and tips on how to do things. You can’t just throw people a big toolbox and say "hey we made the tools and I don’t care which tool you use, bye!!". Even very experienced users expect standards.
                      As one of the core devs on Revo, I completely, 100% agree. I also want to assure you we are working on this - specifically trying to get more real-world examples, tutorials and documentation out so other devs can help expand this. If you have specific examples of docs/tuts/etc that you’d like us to write, let us know. But we definitely see the need, and agree.

                      We’ve made our SVN for MODx Revo components publically available here, and I’ve written a tutorial here on integrating custom tables. When it comes to standards; what are "standards"? That’d be good for something us as a community to define before we write them. So, what do you think?


                      Take the bloggers-example. I’m talking the standard blog here, as simple as you get it. Maybe there are a million ways to set up something like that in modx. However, there is most likely not more than 2-3 _best_ ways to do it. Probably there’s only one. From these few ways, just take an example, make a tut from it and mention at the end that there are other ways to do it. Part of the reason I read tutorials is because I want to see what the best practices are.
                      Agreed; I do know however that there are some tutorials on making a blog in MODx Evolution (I dont have the links handy, sorry, someone else might pop in and state them). In Revo we’ll address this as soon as we can; and we hope some devs will make some neat 3PCs (3rd party components) in Revo that will make blogging even easier.

                      In this thread people seem to hide a little bit behind the flexibility of modx. Flexibility can be a curse too! I’m an experienced php programmer but even I want to do things the ’standard’ way, and if I cannot find the ’standard’ way in modx, I feel a little lost.
                      Well that’s sort of a catch-22. We don’t necessarily "hide" behind flexibility; simple thing is - it is flexible, and different needs need different solutions. There may be more than one "standard" way of doing something in MODx. For example - the blog situation - I can think right now of over 5 different ways to do a blog in Revo; however, each one would benefit different requirements. I’d have to know what my requirements and desires are before I can go the "standard" route.

                      This is important to note: We here at MODx are concentrated on "principle-based learning", not method-based learning. We’re not going to always tell you exactly how to solve a problem, because then you never learn why the problem was a problem in the first place. It’s like teaching; don’t tell a student that 1+2=3. Get him to understand what 1 is, then what 2 is, and then what the + symbol is, and he’ll know immediately that 1 + 2 must be 3. We here at MODx want to teach people how to use the framework - it’s principles, it’s ideology, it’s basic concepts - so that they can craft their solutions tailored to their specific situations. Maybe they can use a generic situation (to which I’ll agree we need more tutorials for). But maybe they want a custom solution; and if we teach the fundamentals right, they’ll be able to easily do that.

                      Now, I’ll readily admit we’re not there yet. But that’s our goal. I’ll also admit we need more generic tutorials. But we will always stress that flexibility over proscribed methods. That’s our value here at MODx.

                      Also consider the discussion above about different languages. Should I use contexts? Or folders? The modx dev team answer could be: "You can use both, isn’t it lovely?".
                      Well, technically, you can use one or both. tongue

                      But that’s not the right answer because there are pro’s and cons for different techniques that I cannot see yet, especially in the long run.
                      Right; but what is a pro in one situation might be a con in another. It really depends on your requirements and preferences. We’re serious. With the Contexts; some sites might require you to put an index.php and instantiate Contexts that way with separate languages. These sites would be structured domainname.com/fr/, domainname.com/es/, etc. Some sites might be better off just using a plugin, since they’re doing fr.domainname.com, es.domainname.com. Some might be using .htaccess rules that might prevent either. These requirements would need to be known beforehand before we can say "this is the standard way." Does that make sense? We’d much rather just give people a 1-way answer, but we’ve found that in web-dev, different solutions are often required.

                      The same goes for blogging systems, and also the question where I should put my assets (css/js).
                      Again, depends on:

                      a) The level of complexity you want
                      b) The level of security you want
                      c) The amount of coding you want to do
                      d) What your clients want


                      All that said, this is great feedback, Erik, and we hope you stick around the MODx community. We need all the help we can get!
                        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com