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

    I can’t to find answer on this qustion anywhere on the forum.

    How to use Smarty syntax in the Revolution templates. Is it possible?

    Thanks!
      DirectResize 0.9 beta. PHPThumb, sets of configurations, configuration, binded to specific path. No backward compatibility. | DirectResize 0.9. PHPThumb, наборы параметров, параметры, привязанные к определенным путям. Без обратной совместимости.

      Unfortunately, DirectResize project is closed. If you want to continue development, PM me for access to project page on Google Code. К сожалению, проект DirectResize закрыт. Если вы желаете продолжить разработки, обращайтесь через ПМ для получения доступа к репозиторию на Google Code.

      [PLUGIN] DirectResize - as Maxigallery but for single images :: Download :: [url=http://modxcms.com/forums/index.php/topic,21490]
      • 25663 MODX Staff
      • 12,272 Posts
      Hi Metaller, it can definitely be done as the entire manager was written that way feeding ExtJS. Shaun’s out for the holiday but hopefully he can chime in with some feedback before hitting the road.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 19164
        • 1,215 Posts
        Thank you, I’m waiting for this.
          DirectResize 0.9 beta. PHPThumb, sets of configurations, configuration, binded to specific path. No backward compatibility. | DirectResize 0.9. PHPThumb, наборы параметров, параметры, привязанные к определенным путям. Без обратной совместимости.

          Unfortunately, DirectResize project is closed. If you want to continue development, PM me for access to project page on Google Code. К сожалению, проект DirectResize закрыт. Если вы желаете продолжить разработки, обращайтесь через ПМ для получения доступа к репозиторию на Google Code.

          [PLUGIN] DirectResize - as Maxigallery but for single images :: Download :: [url=http://modxcms.com/forums/index.php/topic,21490]
          • 28215
          • 4,149 Posts
          Quote from: Metaller at Nov 26, 2008, 03:38 AM

          How to use Smarty syntax in the Revolution templates. Is it possible?

          What do you mean, use Smarty in Revolution templates?
            shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
            • 19164
            • 1,215 Posts
            I’m trying to explain.

            In current version (0.9.x) we can use PHx to realize some logic in templates: conditions if...then...else, output modifers.

            How to make it in Revolution? Is it possible to use smarty {if} {for} {section} etc. in Revolution’s templates? Or we must use PHx as in current version?
              DirectResize 0.9 beta. PHPThumb, sets of configurations, configuration, binded to specific path. No backward compatibility. | DirectResize 0.9. PHPThumb, наборы параметров, параметры, привязанные к определенным путям. Без обратной совместимости.

              Unfortunately, DirectResize project is closed. If you want to continue development, PM me for access to project page on Google Code. К сожалению, проект DirectResize закрыт. Если вы желаете продолжить разработки, обращайтесь через ПМ для получения доступа к репозиторию на Google Code.

              [PLUGIN] DirectResize - as Maxigallery but for single images :: Download :: [url=http://modxcms.com/forums/index.php/topic,21490]
              • 19164
              • 1,215 Posts
              So, is it means that we can’t to use Smarty in templates?
                DirectResize 0.9 beta. PHPThumb, sets of configurations, configuration, binded to specific path. No backward compatibility. | DirectResize 0.9. PHPThumb, наборы параметров, параметры, привязанные к определенным путям. Без обратной совместимости.

                Unfortunately, DirectResize project is closed. If you want to continue development, PM me for access to project page on Google Code. К сожалению, проект DirectResize закрыт. Если вы желаете продолжить разработки, обращайтесь через ПМ для получения доступа к репозиторию на Google Code.

                [PLUGIN] DirectResize - as Maxigallery but for single images :: Download :: [url=http://modxcms.com/forums/index.php/topic,21490]
                • 28215
                • 4,149 Posts
                Quote from: Metaller at Dec 04, 2008, 09:24 AM

                So, is it means that we can’t to use Smarty in templates?

                You would have to extend the modResource and modElement classes, and do some internals...this was an idea for us, maybe creating a modSmartyElement and modSmartyResource, but we haven’t gotten around to it yet.

                Or, you could just create a snippet to render tpl’s within the content.
                  shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
                  • 19164
                  • 1,215 Posts
                  Thanks for reply. I hope it will be in final version.
                    DirectResize 0.9 beta. PHPThumb, sets of configurations, configuration, binded to specific path. No backward compatibility. | DirectResize 0.9. PHPThumb, наборы параметров, параметры, привязанные к определенным путям. Без обратной совместимости.

                    Unfortunately, DirectResize project is closed. If you want to continue development, PM me for access to project page on Google Code. К сожалению, проект DirectResize закрыт. Если вы желаете продолжить разработки, обращайтесь через ПМ для получения доступа к репозиторию на Google Code.

                    [PLUGIN] DirectResize - as Maxigallery but for single images :: Download :: [url=http://modxcms.com/forums/index.php/topic,21490]
                    • 8461
                    • 205 Posts
                    Um quite interesting

                    One thing is Smarty favour is that it is used in many different projects and is quite powerful now. I like the fact that a css/html coder will be able to grasp smarty quickly without the need to worry about delving into the core php itself. However, PHx is also quite flexible.

                    Having a modSmartyElement and modSmartyResource so those who want, can choose Smarty templating would be very handy, especially in large projects where the design team is different to the code team.