We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31410
    • 66 Posts
    hello
    i had a strange error not sure its bug or something else
    i had a placeholders like [[+movie.rating]]
    with the snippet i set them like $modx->toPlaceholders($marray,’movie’);
    everything worked fine untill now

    but when i use outputfilter on that placeholder like
    [[+movie.rating:mpy=`10`]]
    its not at all working

    if i test on something like [[+rating:mpy=`10`]] its working

    am i doing anything wrong or is it a bug

    hope i will get a answer tongue

    thanks
      • 31410
      • 66 Posts
      can any one answer this post please

      thanks
        • 28215
        • 4,149 Posts
        [[!+rating:mpy=`10`]]
        


        Assuming mpy is a custom Snippet that returns a proper value...
          shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
          • 31410
          • 66 Posts
          Quote from: splittingred at Jun 22, 2011, 08:12 AM

          [[!+rating:mpy=`10`]]
          


          Assuming mpy is a custom Snippet that returns a proper value...
          mpy Returns input multiplied by option (default: *2) which is built in modx

          [[!+rating:mpy=`10`]] works fine but what iam saying is if we give [[!+movies.rating:mpy=`10`] [[!+movies.desc:ellipsis=`10`] and assign the placeholders with $modx->toPlaceholders($dataarray,’movies’);
          the output filters not working (any filter even the inbuilt output filters)
          i tried with all options but no use
          i assume its bug....

          let me know if you need more details

          thanks
            • 22303 MODX Staff
            • 10,725 Posts
            Try removing the non-cacheable token ( ! ) on the placeholder tags — that is delaying the output filters until those placeholders are out of scope I assume...
              • 31410
              • 66 Posts
              thanks for the reply opengeek

              i tried with removing (!) but no luck
              can you confirm placeholder output filters like [[+prefix.key:ph=`somevalue`]] is really working (assuming you will set them with $modx->toPlaceholdes($data,’prefix’);)
              i tried this in 3-4 sites but they are not at all working
              if it works fine with you can you link one snippet code(just to make sure iam following the right format)

              thanks
              venu