We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 49515
    • 184 Posts
    Well, there are 4 errors in MODX:
    1. Uncaught Error: Bootstrap's JavaScript requires jQuery.
    2. Failed to load resource: the server responded with a status of 404 (Not Found)
    3. Failed to load resource: the server responded with a status of 404 (Not Found)
    4. Failed to load resource: the server responded with a status of 404 (Not Found)

    Error 1 relates to some bootstrap.min.js:6.
    Error 2, 3 and 4 relate to no font files uploaded.
      • 49515
      • 184 Posts
      Okay, as per reply #29, I'll use CDN, as MODX won't upload the raw files of Bootstrap's font files, which control the left and right arrows (glyphicons).

      So, now that the images are centered, I just need to shrink the width of the Bootstrap carousel, which may not be a MODX issue.

      I'm reading http://getbootstrap.com/css/#responsive-utilities > Grid options > Ex: Stacked-to-horizontal.
      This uses columns to manage the slide carousel's width.
      Need to work out how to manage these columns with code on Bootstrap in MODX. [ed. note: eiger3970 last edited this post 11 years, 1 month ago.]
        • 49515
        • 184 Posts
        Okay, finally working.

        So, now is the final big challenge.

        How to replicate this working MODX Bootstrap carousel onto an existing MODX website with a really old running slideshow carousel.
        If I touch this existing MODX website, which seems to run off php, the page shows white, rather than the old or new slideshow carousel.

        After this, I can look at the MIGX thing.
          • 10208 ☆ A M B ☆
          • 1,780 Posts
          Quote from: eiger3970 at Aug 28, 2015, 10:21 PM
          Okay, as per reply #29, I'll use CDN, as MODX won't upload the raw files of Bootstrap's font files, which control the left and right arrows (glyphicons).

          MODX is doing exactly as you tell it. The error loading files is your code. Sorry to say, but MODX only does what's told to do and if that's incorrect, in any way... it's not going to perform magic for you and correct your code. A file that does not load, is not coded properly.

          So many times we blame something else, until we find our own error. It always is. Accept it. And comb through you code or copy some working code and replace the file names, check for spaces and incorrect spellings, stray characters, or whatever you can find that's not supposed to be there or conversely, be there.

          So, now that the images are centered, I just need to shrink the width of the Bootstrap carousel, which may not be a MODX issue.
          ]

          The functionality of your Bootstrap carousel is 100% independent of MODX. MODx only produces what you tell it to, in the most basic of ways in that your templates, markup, and insertion of the MODX good stuff like template variables, chunks, snippets, and plugins. It is however, all produced according to your design/code.

          Which is why we like it.

          Please, focus less on MODX than your code. This will all make sense as you work your way through and if there's one thing I've taken from working with MODX is that it's always some mistake in your code in the end. It could be a space, a misspelling, a trailing slash, an apostophe instead of a backslash, a capital instead of a lower case, hyphen vs underscore...

          Anything can gork your chit. Expect it, but don't rely on MODX to fix your code.

          MODX does not ever really, do anything all for you and even the plugins and snippets you install are bare bones and must be configured and styled with valid code. Hard lesson to learn if you come from WordPress or similar perhaps. However MODX is not WordPress, and it is not meant to be nor will it ever become. No one wants that.

          I'm reading http://getbootstrap.com/css/#responsive-utilities > Grid options > Ex: Stacked-to-horizontal.
          This uses columns to manage the slide carousel's width.
          Need to work out how to manage these columns with code on Bootstrap in MODX.

          The carousel's width can be overridden with the same exact class as is shown in the inspector. Copy that, paste into your CSS file and set only the properties that you want to change. Leave all the rest to the CDN version of the Bootstra.css file.

          To find the specific element and the class that affects the width of the carousel, inspect the page, and see which selector in the CSS shows a width that if you change, affects your image width in real time. Likely whichever selector has 100% for width.

          If the slides aren't scrolling/doing stuff that means as you've shown above, that links to the files you need for jQuery and Javascript aren't being loaded for some reason (some mistake in the code), or aren't in the correct order.

          This is how it works:
          jQuery must appear first top to bottom, with javascript after.

          Yet you should know that the browsers load from bottom to top. Meaning that jQuery actually loads last as does your custom.css file if you put it in the topmost spot.

          Each appears before the CDN version in your code/template/chunk/TV and in the final source of a page.

          Again, getting files to load and work, we go back to your code, as inspection has told you. If you want these files to load, you're going to have to find the errors.

          [ed. note: frogabog last edited this post 11 years, 1 month ago.]
            Frogabog- MODX Websites in Portland Oregon
            "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
            Having server issues? These guys have MODX Hosting perfected - SkyToaster
            • 10208 ☆ A M B ☆
            • 1,780 Posts
            Quote from: eiger3970 at Aug 29, 2015, 03:06 AM
            Okay, finally working.

            So, now is the final big challenge.

            How to replicate this working MODX Bootstrap carousel onto an existing MODX website with a really old running slideshow carousel.
            If I touch this existing MODX website, which seems to run off php, the page shows white, rather than the old or new slideshow carousel.

            After this, I can look at the MIGX thing.

            MODX still effectively runs off of PHP and mySQL. No big change there at all between versions. What version of MODX is the current site running?

            To replace your existing carousel, you'll have to load the new Bootstrap stuff either in the existing head (chunk?) or the new BS head you recently created. But be sure to load the old files as well so as to not override/omit existing styles.

            MIGX isn't entirely necessary if you have only a few images to show. MIGX is incredible, but it's really only useful for your editors (or yourself) to be able to change stuff easily. If that never will happen without you renaming a file name, don't give this client MIGX or your time to configure it unless you want to play with it and learn or make your life easier/make less money for edits.

            Hard code that chit if no one is ever going to change/edit it other than you. This doesn't mean that you shouldn't use or learn MIGX. Just maybe not yet.
              Frogabog- MODX Websites in Portland Oregon
              "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
              Having server issues? These guys have MODX Hosting perfected - SkyToaster
              • 49515
              • 184 Posts
              Okay, thank you for the explanations.
              So, this might be a Bootstrap issue then, but adding the new Bootstrap carousel to an existing MODX website causes the font to increase, which moves the new carousel out of the layout and messes up the rest of the webpage layout.

              The existing website has a head file with code:
              <link href='//fonts.googleapis.com/css?family=Titillium+Web:400,400italic,600,600italic,700,700italic' rel='stylesheet' type='text/css' />
              <link href="css/screen.css" rel="stylesheet" type="text/css" />
              <link rel="stylesheet" href="sIFR-screen.css" type="text/css" media="screen" />
              <link rel="stylesheet" href="sIFR-print.css" type="text/css" media="print" />
              <link rel="stylesheet" href="css/ui.tabs.css" type="text/css" media="print, projection, screen">
                <link rel="stylesheet" type="text/css" href="css/carousel.css">


              and I use the new Bootstrap carousel head code:
              <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
                <!-- Latest compiled and minified CSS. -->
                <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
                <!-- Optional theme. -->
                <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
                <!-- Latest compiled and minified JavaScript. -->
                <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js">   </script>


              Not sure how to keep the font the same size, so the new carousel will work.
                • 10208 ☆ A M B ☆
                • 1,780 Posts
                Probably going to have to find out which of the old styles from those stylesheets you need to keep. If only the font size has been affected, you can simply set the size in your new stylesheet (the one you use to override or set styles outside of the bootstrap CSS).


                I'd start with putting this back into the head to see if the font goes back to normal. Then find where that's set and do the same in your new stylesheet. If nothing else from the old stylesheet is necessary, junk the old file in the head and go forward. If you need the same font, keep the first line.
                <link href='//fonts.googleapis.com/css?family=Titillium+Web:400,400italic,600,600italic,700,700italic' rel='stylesheet' type='text/css' />
                <link href="css/screen.css" rel="stylesheet" type="text/css" />

                  Frogabog- MODX Websites in Portland Oregon
                  "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
                  Having server issues? These guys have MODX Hosting perfected - SkyToaster
                  • 49515
                  • 184 Posts
                  Thanks, but I'm out of time. The website has been replaced.