<p>I second this idea. I've had to clean up several installs that had all contrib modules installed in the /modules folder. I even had someone so confused that they copied the core modules into the sites/all/modules folder. I'm personally in favor of a very simple two folder structure at the root level. Something like do_not_touch (think core) and safe_to_edit (think contrib or sites). Then inside those folders could be our current structure or even an improved one.</p>
<div>--</div>
<div>antgiant</div>
<div class="gmail_quote"> </div>
<div class="gmail_quote">On Thu, Nov 19, 2009 at 9:40 AM, Josh Miller <span dir="ltr"><<a href="mailto:JoshM@haanmc.com">JoshM@haanmc.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div lang="EN-US" vlink="purple" link="blue">
<div>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 11pt">Charbel,<br><br>As I recall from over a year ago, my first two Drupal sites had custom and contrib modules in the /modules/ folder. Then I had to upgrade and it was very painful. I'm sure there are other devs out there that have similar stories. My point is that we shouldn't *<b>have</b>* to document, it should be *<b>very apparent</b>* where things go.<br>
<br>On a side note, this is definitely a D8 discussion.<br><br>Josh</span></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 11pt"> </span></p>
<div style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<p class="MsoNormal"><b><span style="FONT-SIZE: 10pt">From:</span></b><span style="FONT-SIZE: 10pt"> <a href="mailto:development-bounces@drupal.org" target="_blank">development-bounces@drupal.org</a> [mailto:<a href="mailto:development-bounces@drupal.org" target="_blank">development-bounces@drupal.org</a>] <b>On Behalf Of </b>Charbel Khadra<br>
<b>Sent:</b> Thursday, November 19, 2009 9:45 AM<br><b>To:</b> <a href="mailto:development@drupal.org" target="_blank">development@drupal.org</a><br><b>Subject:</b> Re: [development] Drupal Folder Structure</span></p></div>
<div>
<div></div>
<div class="h5">
<p class="MsoNormal"> </p>
<div>
<p style="MARGIN-BOTTOM: 12pt" class="MsoNormal">i don't see what you are posting is a major issue.<br>any user who is going to deploy drupal application should a have a minimum technical level to be able to read the basic insatallation step of a module<br>
<br clear="all"><br>Charbel Khadra<br><a href="mailto:charbel@ebizproduction.com" target="_blank">charbel@ebizproduction.com</a><br><a href="http://www.ebizproduction.com/" target="_blank">www.ebizproduction.com</a><br><br>
</p>
<div>
<p class="MsoNormal">On Thu, Nov 19, 2009 at 4:40 PM, Ken Winters <<a href="mailto:kwinters@coalmarch.com" target="_blank">kwinters@coalmarch.com</a>> wrote:</p>
<div>
<p class="MsoNormal"> </p>
<div>
<div>
<p class="MsoNormal">On Nov 19, 2009, at 9:15 AM, Josh Miller wrote:</p></div>
<p class="MsoNormal"><br><br></p>
<div>
<div>
<div>
<p style="MARGIN-BOTTOM: 12pt" class="MsoNormal"><span style="COLOR: black; FONT-SIZE: 11pt">Is there anyone else worried that the Drupal folder structure encourages users to drop modules or themes into the wrong place? Wouldn't you like to have a folder structure that separates core from the rest of the customizable sites folder?<br>
<br>As this issue could blow up in the issue que (<a href="http://drupal.org/node/22336" target="_blank">http://drupal.org/node/22336</a>) perhaps a short discourse on the mailing list is in order. It's weird that we all care so much about coding standards and yet we let our folder structure look so thrown together.<br>
<br>Perhaps I'm wrong. I have feeling the real reason we are putting up with such a confusing structure is that moving files can introduce a big wtf and some might think we should leave it well enough alone. On the other hand, I believe it's broken and not at all grokable for 100% of the newbies.</span></p>
</div></div></div></div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal">I'm all for moving the core modules into /core/modules, themes into /core/themes (or anything equivalent) in D8. It seems way too late for D7.</p></div>
<div>
<p class="MsoNormal"> </p></div>
<div>
<p class="MsoNormal">What we could do in the immediate is put a text file DONTTOUCH.txt or whatever in those folders, with instructions on what users should actually be doing.</p></div>
<div>
<p class="MsoNormal"> </p></div>
<div>
<p class="MsoNormal">On a related note, some modules encourage users to place custom code or plugin modules into [module folder]/modules, </p></div>
<div>
<p class="MsoNormal">which is bad because they can easily be deleted when the main module is updated. I think we should discourage this.</p></div>
<div>
<p class="MsoNormal"> </p></div>
<div>
<p class="MsoNormal"><span style="COLOR: #888888">- Ken Winters</span></p></div></div></div>
<p class="MsoNormal"> </p></div></div></div></div></div></blockquote></div><br>