We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19628
    • 2 Posts
    Hi,

    I’m verry new with MODX and I don’t speak english very well. But I’ll try to explain my problem.

    My test site is on http://modx.miniil.net

    I’ve got a menu on the left and I want when I click on a link (for example LaRedoute) the result is display on two columns and 3 lines (for example).

    Is it possible and how.

    Thanks in advance for your help
      • 17717
      • 433 Posts
      If your talking about flowing content from one column to the next, that is not really a MODx issue but a CSS issue, currently is the spec for CSS3 if I remember. There are of course ways round it, but it would depend how flexible the content needs to be.
        http://www.blend.uk.com | Web Design by Blend
        • 19628
        • 2 Posts
        Yes that’s it.

        Could you explain me how to do that?
          • 25663 MODX Staff
          • 12,272 Posts
          That type of behavior is not widely supported in current-day browsers without some tricky javascript. I believe most folks that have tried it ultimately abandoned it.
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 7455
            • 2,204 Posts
            Its a big hassle I tryed some javascript but stept away from it. you could take a look at roblab for one example, when you get it to work properly please let me know I like to use this also but after spending 5+ day’s on this I gave up.


              follow me on twitter: @dimmy01
              • 22770
              • 285 Posts
              I guess this could possibly be done with a PHP snippet rather than javascript, at least if you have fixed-width or proportional columns. It wouldn’t be perfect, but it might work better than javascript. Just don’t ask me to write the snippet!
                • 17717
                • 433 Posts
                PHP would certainly be a more accessible option, anyone care to give it a go?

                Lee
                  http://www.blend.uk.com | Web Design by Blend
                  • 22770
                  • 285 Posts
                  Quote from: ganeshXL at Jul 06, 2007, 05:22 AM

                  A solution with only PHP wouldn’t work, since PHP has no idea how tall your browser window is... (roblab example takes the browser height into account as well, and even adds pseudo "page-navigation").

                  I agree that such gimmicks are basically useless. No one really *expects* text to flow like that on websites anyway.

                  If it’s all got to fit on a single screen and then break to a second page, you are right. If you’re just looking for 2/3 columns on a single page, PHP could manage it, I think.
                    • 25663 MODX Staff
                    • 12,272 Posts
                    What happens when you resize the text? PHP won’t reprocess the page. This is an application that Javascript needs to handle.
                      Ryan Thrash, MODX Co-Founder
                      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                      • 22770
                      • 285 Posts
                      Quote from: rthrash at Jul 06, 2007, 09:07 AM

                      What happens when you resize the text? PHP won’t reprocess the page. This is an application that Javascript needs to handle.

                      This is why it would only work if you had proportional-width or fixed-width columns. In that case, if you resized the text, you’d be resizing the text in both columns.

                      This is what I think would happen: you input text. Your PHP snippet counts either number of characters or number of words, then splits the string about half-way (while preserving whole words) and outputs to two separate divs representing the columns. Now, if you resize text, assuming your column widths remain equal, you’ll still have the half the output in each column. The length of the columns will grow, but the columns will still have half the content each and so will stay roughly the same length.

                      I really don’t think this would be a great solution. I just think it’s something that would be quicker and easier to implement in PHP than to try doing the same with javascript, if you wanted all your text in 2/3 columns on one page.