No announcement yet.

File Structure

  • Filter
  • Time
  • Show
Clear All
new posts

  • File Structure

    Our current site uses a public_html folder that contains all of our info. Inside this are subfolders such as images, how-to, downloads, tech data, etc.
    Each of these subfolders contains information specific to the theme of the folder (similar to folders inside a filing cabinet).
    This makes it easy to
    1. Organize our files
    2. Have URLs that make sense, are short and topical.
    For example if you want to know how to paint a door the url would be

    When looking for this ability in 3dcart we go to "File Manager" from the Administrator tab on the upper right. The default folder is "images".
    We're told that this is the ONLY available folder. We can create subfolders underneath this, but everything is in images.
    Is this correct???

    If so it's not only inefficient but creates URLs that aren't accurate and could even be confusing to site visitors and perhaps even search engines.
    Articles, spreadsheets, word docs, mp3s, etc etc don't belong in an "images" folder......because they aren't images.

    Please tell us that we got incorrrect information and we can actually create a file structure that makes sense.

    Thanks in advance

  • #2
    You can create directories under /assets and under /web, but you can't utilize this to accomplish what you want to do if you're creating content natively through Settings > Design > Site Content. Those extra pages aren't really pages, they're just data that rotate in and out of displaying on extrapage.html.

    But, you can create /web/how-to/ and place a static page in there that is identical to your template named swim.html, and then link to, or create web/how-to/swim/ and place index.html in it and link people to Or whatever.
    - Dean P. e-commerce and small business consulting


    • #3
      Thanks for the response. Sounds promising.
      How do we create directories under assets? File Manager still goes to assets/images by default. Can't find how to change that and go higher.

      The idea of creating static pages is what we're looking for. Wasn't aware that info just transfers in and out of extrapage. How do we create that page from our blank template?


      • #4
        You need to access your files through FTP to create directories like this.
        - Dean P. e-commerce and small business consulting


        • #5
          Worked great, and directories created. Thanks!

          How do we create a static page identical to our template?
          Tech support told us to download frame.html, input our content in the "blank space", re-name it, then upload it into the folder we created.
          We downloaded frame.html, did not input anything (as it was a test), changed the name, uploaded to the folder we created.
          The attached picture is how the page isn't the solution.
          You do not have permission to view this gallery.
          This gallery has 1 photos.


          • #6
            Close. Because this copy of the frame now exists in a different directory than the one it's coded for, the links to CSS files contained within it are now broken. You just need to reconnect them. Take a look at the frame code within the HEAD section toward the top. You'll see a number of links that look like this:

            <link rel="stylesheet" href="assets/templates/justswell-html5/css/quicksearch.css" type="text/css" media="screen" />
            <link rel="stylesheet" href="assets/templates/justswell-html5/css/layout.css" type="text/css" media="all" />
            <link rel="stylesheet" href="assets/templates/common-html5/css/responsive.css" type="text/css" media="screen" />
            <link rel="stylesheet" href="assets/templates/[template]/css/[stylesheet]" type="text/css" media="screen" />
            Never mind the quantity or names of the CSS files or the template name, mine may be different from yours. Instead just see the red text. assets/templates/etc.... is relative to the original location of the template. Probably the easiest thing to do would be stick // (which is of course your domain name) in front of all of them, like this:

            <link rel="stylesheet" href="//" type="text/css" media="screen" />
            <link rel="stylesheet" href="//" type="text/css" media="all" />
            <link rel="stylesheet" href="//" type="text/css" media="screen" />
            <link rel="stylesheet" href="//[template]/css/[stylesheet]" type="text/css" media="screen" />
            So long as you don't move your CSS files - which you'll likely never have a reason to do - then you can copy that frame and use it as many times as you like and it will utilize the CSS.
            - Dean P. e-commerce and small business consulting