Quote from: johnywhy at May 04, 2011, 07:35 PM
But as was pointed out, they all trigger the same code, so maybe it’s fine. But worth thinking about.
I’m not a programmer, I could be wrong about that.
Quote from: johnywhy at May 04, 2011, 07:31 PM
I don’t know MODx well enough yet to give examples, I’ve only read on some of the tutorials "there are usually several ways to accomplish the same thing."
Which brings to mind Microsoft Word 2007, which has at least 4 ways to copy:
-right-click
-control-c
-toolbar button
-edit menu
Bringing user-interface examples from Microsoft, IMO, is pointless. Although, I’ll point out that most of those make sense, from an app design perspective.
-right click - this is an often used tool, and should be readily available via mouse
-control-c - necessary for keyboard users, but alas, most computer users are clueless about such things as shortcuts and never use them
-toolbar button - necessary for people that don’t really know computers, that won’t know to look in the edit menu, in the right click menu, or to use the keyboard shortcut
-edit menu - this makes sense, I think, and in any case, how would anyone ever learn what the shortcut is the first time without the button being in the edit menu?
Quote from: johnywhy at May 04, 2011, 07:31 PM
The philosophy is that different people prefer different methods at different times. Well, I teach Word, and average Joe users can usually only remember one way, they only need one way. I think it does not benefit most users, and makes for a more cluttered interface. 3 of the above ways all use the mouse. I think 1 is enough.
To illustrate, which of the above ways would you limit it to? Only in the right click menu? This is something used a lot. Why isn’t it in the toolbar? Only in the toolbar? I use this a lot - why should I bring my mouse all the way up to the toolbar after selecting the text to copy it? Only in the edit menu? Why not the toolbar, where it is more accessible? Why not the right click menu, where my mouse has less room to travel to click it?
Quote from: johnywhy at May 04, 2011, 07:31 PM
So when I read that MODx has more than one way to do the same thing, then I worry that, if that’s part of the design philosophy of MODx going forward, that we will see more Microsoft-style bloat in MODx.
I think there is a bit of a misunderstanding here. So far as I know, when people speak of that, they are referring to the many ways to organize information and accomplish tasks using the MODX infrastructure.
For instance, if I have some pages that have a right sidebar, some with a left sidebar, and some that have no sidebar, I could accomplish the build of this site in many different ways:
1. I could make 3 different templates.
2. I could use one template and make use one of my standard TVs (such as link_attributes) as a class name, and then the two columns can be named arbitrarily, and the CSS can structure the columns differently depending on the outer class name and the children.
3. I could make 1 template that uses a conditional statement, and have a dropdown TV that selects left, right or none.
4. There are additional ways to accomplish this.
Basically, anything that you decide you want to do, there is usually (maybe always?) more than one way to accomplish it. This isn’t a matter of redundancy; this is one of the best things about MODX - the freedom to choose your path, to go according to your workflow and not the workflow of the CMS designers.