We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30176
    • 99 Posts
    What is the best way to connect a style sheet to the chunk here? smiley

    In addition, it works well uncached, but cached the output does not change. Would that be expected?

    Thank you.
      "Remember what Bilbo used to say: It's a dangerous business, Frodo, going out your door. You step onto the road, and if you don't keep your feet, there's no knowing where you might be swept off to."
      -J.R.R. Tolkien from The Lord of the Rings
      • 16702 ☆ A M B ☆
      • 536 Posts
      Hello,


      Can I combine 2 ор 3...parents? Like Ditto &parents=`4, 8, 23`

      Thanks
        palma non sine pulvere
        • 30176
        • 99 Posts
        I am not sure there is a bug in my installation or this is just how the tabControl snippet works:

        On pages that I have placed tabControl it breaks Ajaxsearch in the Ajax mode (as opposed to flexsearch mode)

        I like the snippet a great deal....thank you!

          "Remember what Bilbo used to say: It's a dangerous business, Frodo, going out your door. You step onto the road, and if you don't keep your feet, there's no knowing where you might be swept off to."
          -J.R.R. Tolkien from The Lord of the Rings
          • 30176
          • 99 Posts
          Hi Sharkbait,

          Thank you for your example site by the way, I have looked at it many times and it has been very helpful.

          On your example of Tab Control that you gave above, you are getting very fast responses between clicking on tabs; as fast as a jquery tab. I have set this up and it works but my response between clicking on tabs is more like a database read.

          Also, I only seem to be able to get the snippet to work uncached so that might be the root of it. Do you have any thoughts on why this might be behaving this way?

          Here is the read on my database
          MySQL: 0.0511 s, 3 request(s), PHP: 0.2862 s, total: 0.3373 s, document retrieved from cache.

          I am using as my call
          [!tabControl? &parents=`79` &tpl=`tabControltpl`!]




            "Remember what Bilbo used to say: It's a dangerous business, Frodo, going out your door. You step onto the road, and if you don't keep your feet, there's no knowing where you might be swept off to."
            -J.R.R. Tolkien from The Lord of the Rings
            • 26931
            • 2,314 Posts
            Hi tmcleroy,

            hm, strange ...i also got it uncached on a cached ressource.
            MySQL: 0.0033 s, 7 request(s), PHP: 0.0443 s, total: 0.0476 s, document retrieved from database

            MODx 1.0.4
              • 30176
              • 99 Posts
              Can you get it to work cached on a cached resource? (the instructions noted the call as cached but I could not get it to work that way, unless the resource was uncached.)

              Do you use a blank template for the tabbed pages?

              Your response rate is so nice that is why I am asking. On my Firefox I can see the read status bar in the bottom right on each page whereas with your example I do not even see a read on the status bar taking place.

                "Remember what Bilbo used to say: It's a dangerous business, Frodo, going out your door. You step onto the road, and if you don't keep your feet, there's no knowing where you might be swept off to."
                -J.R.R. Tolkien from The Lord of the Rings
                • 26931
                • 2,314 Posts
                Can you get it to work cached on a cached resource
                yes, it’s working too:
                MySQL: 0.0027 s, 6 request(s), PHP: 0.0462 s, total: 0.0489 s, document retrieved

                Do you use a blank template for the tabbed pages?
                no, actually the template you see on the container ressource (not much in it)

                huh no idea why it might be slower
                  • 30176
                  • 99 Posts
                  Thanks Sharkbait, I have something crossed up here.

                  Because I have this problem, I am not sure that I am telling you right, but I think you can use a blank template on the tabbed pages. I wonder if in doing so then your database requests would go down? Not that you are having any performance problem now. smiley
                    "Remember what Bilbo used to say: It's a dangerous business, Frodo, going out your door. You step onto the road, and if you don't keep your feet, there's no knowing where you might be swept off to."
                    -J.R.R. Tolkien from The Lord of the Rings
                    • 30672
                    • 180 Posts
                    Hi,

                    i juste tried to implement this code on a page of my site, but it’s working backward! laugh

                    i have a page X and i add 3 sub-pages.

                    in the tabcontrol of page X, i don’t find the 3 subpages, but the hidden pages that are at the same level as page X !

                    can someone help me?

                    thanks !
                      • 30176
                      • 99 Posts
                      Hi Troubadour,
                      Can you place your tabControl call here so we can take a look? Thanks
                        "Remember what Bilbo used to say: It's a dangerous business, Frodo, going out your door. You step onto the road, and if you don't keep your feet, there's no knowing where you might be swept off to."
                        -J.R.R. Tolkien from The Lord of the Rings