We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17282
    • 283 Posts
    Im sure this has been covered before .. but can i find it anywhere? can i heck as like so

    heres what i want to do .. i have finally got the marquee widget working thnx to the fixes ..
    and i want to call this in the marquee widget (called (*scroller*) that i have created ... i want this in it : [[scrollerlisting?startID=5&tpl=ScrollerListingTemplate&summarize=20]]

    this is just a template for newslisting that shows only the titles .. the idea being that the latest news scrolls up the side of the site ... now the widget works with just plain text ... but when i use this snippet instead .. i get nothing .. so im sure im doing it wrong .. anyone got any ideas?


    cheers guys smiley

    Martyn
      Everytime you use Flash ... a puppy dies .....
      R.G Taylor
      • 32241
      • 1,495 Posts
      You can use it as a value inside a TV, when you’re using widget. MODx parser will parse the snippet tag while it’s being outputed as is, while if you put it in a TV with widget special outputing, the current value will be parsed first, before it’s being outputed.

      Use @EVAL instead.
      @EVAL $modx->getSnippet("scrollerlisting", array("startID"=>5, "tpl"=>"ScrollerListingTemplate", "summarize"=>20));
      


      hope it works on your case.

      Sicnerely,
        Wendy Novianto
        [font=Verdana]PT DJAMOER Technology Media
        [font=Verdana]Xituz Media
        • 17282
        • 283 Posts
        Quote from: Djamoer at Feb 27, 2006, 02:29 PM

        You can use it as a value inside a TV, when you’re using widget. MODx parser will parse the snippet tag while it’s being outputed as is, while if you put it in a TV with widget special outputing, the current value will be parsed first, before it’s being outputed.

        Use @EVAL instead.
        @EVAL $modx->getSnippet("scrollerlisting", array("startID"=>5, "tpl"=>"ScrollerListingTemplate", "summarize"=>20));
        


        hope it works on your case.


        hmm call to undefined function : getsnippet
        .....
        Sicnerely,
          Everytime you use Flash ... a puppy dies .....
          R.G Taylor
          • 18397
          • 3,250 Posts
          I think it is runsnippet
            • 32241
            • 1,495 Posts
            Quote from: Mark at Mar 07, 2006, 05:15 AM

            I think it is runsnippet

            Yeap, that’s the right one. Sorry for giving out a wrong API name.
              Wendy Novianto
              [font=Verdana]PT DJAMOER Technology Media
              [font=Verdana]Xituz Media
              • 17282
              • 283 Posts
              Ahhh! cool .. ill give it a try
                Everytime you use Flash ... a puppy dies .....
                R.G Taylor
                • 17282
                • 283 Posts
                dammit!

                that didnt work either!

                sorry to be a pain .. but if i give someone a login .. they wouldnt take a look and see what im doing wrong would they?

                Many thnx smiley

                Martyn
                  Everytime you use Flash ... a puppy dies .....
                  R.G Taylor
                  • 32241
                  • 1,495 Posts
                  Quote from: Lizard at Mar 07, 2006, 09:54 AM

                  dammit!

                  that didnt work either!

                  sorry to be a pain .. but if i give someone a login .. they wouldnt take a look and see what im doing wrong would they?

                  Many thnx smiley

                  Martyn

                  It’s my fault again. Here is the well tested code wink
                  @EVAL return $modx->runSnippet("DropMenu", array("selfAsLink"=>true));
                  


                  Just make sure that you return all the output of your php statement on your eval tv binding.
                    Wendy Novianto
                    [font=Verdana]PT DJAMOER Technology Media
                    [font=Verdana]Xituz Media
                    • 17282
                    • 283 Posts
                    YES YES YES !

                    that worked w00t !

                    thnx u r a star smiley


                    Martyn

                    got it working with NewsListing as well!
                      Everytime you use Flash ... a puppy dies .....
                      R.G Taylor
                      • 17282
                      • 283 Posts
                      Ha there is no stopping me now!

                      all my pages are going to be a nightmare of scroling content laugh

                        Everytime you use Flash ... a puppy dies .....
                        R.G Taylor