We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23491 ☆ A M B ☆
    • 1,056 Posts
    Quote from: worchyld at Apr 10, 2008, 07:55 AM

    How do I get PHx to ask whether a document is a folder, or has other default document attributes?

    ie:
    [+phx:if=`isfolder`:isnot=``:then=`FOLDER`+]
    


    Try creating a PHx Modifier snippet, this should be pretty easy using $modx->documentObject
    http://wiki.modxcms.com/index.php/PHx/CustomModifiers

    See post below... (Duh!--thx helio) wink

      Mike Reid - www.pixelchutes.com
      MODx Ambassador / Contributor
      [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
      ________________________________
      Where every pixel matters.
      • 11975
      • 2,542 Posts
      Hi,


      [+phx:if=`[*isfolder*]`:isnot=`0`:then=`I’M A FOLDER`+]


      :-)
        Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
        • 33423
        • 27 Posts
        are there any isset() functions for PHX, i couldn’t find anything about it.
        Thanks...

        ex: [+phx:isset=`[*longtitle*]`:`<h2>[*longtitle*]</h2>`+]
          • 19164
          • 1,215 Posts
          [*longtitle:isnot=``:then=`<h2>[*longtitle*]</h2>`*]

          or if you wish [+phx:if=`[*longtitle*]`:isnot=``:then=`<h2>[*longtitle*]</h2>`+]
            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]
            • 33423
            • 27 Posts
            Thanks so much
              • 10896
              • 76 Posts
              Sorry for the newbie type question...

              I installed the latest version of PHx and found that it turned off my Jot output when I had the custom place holders active. So my comments and form didn’t display at all. What do I need to do to allow PHx and Jot to co-exist?

              Thanks
                • 36582
                • 463 Posts
                Now this is a real newbie question!:

                I can see that PHx is really popular but I’m struggling to understand what the best implementation of it is - I really don’t understand what it does? I’ve read everything I can find but I think the example site is down at the moment so maybe that’s what I’m missing?

                Many thanks...
                  Web site design in Nottingham UK by Chris Fickling http://www.chrisficklingdesign.co.uk
                  • 10896
                  • 76 Posts
                  chrisandy

                  PHx allows you to modify template vars and snippet placeholders on the fly without needing to create custom snippets or PHP code for common tasks. For example you may want to output the publish date of a document but you may want the ’created on’ date in a different format other than the default. With PHx you can modify that output in the following manner

                  [*createdon:date=`%d.%m.%Y`*]
                  


                  This way you don’t have to create a custom snippet to do this. Does that make sense?

                  You can read up on more at the wiki page:

                  http://wiki.modxcms.com/index.php/PHx#date.28.3D.60dateformat.60.29

                  HTH
                    • 10896
                    • 76 Posts
                    Well, it looks like this thread is addressing the Jot and PHx plugin issue

                    http://modxcms.com/forums/index.php/topic,12828.0.html

                    In summary: if you turn off placeholders and use the &action parameter you can call Jot in multiple instances to get the output while keeping PHx plugin enabled.

                    If someone else has a better idea please let me know.

                    Thanks.
                      • 36582
                      • 463 Posts
                      I think I’m getting it - thank you smiley
                        Web site design in Nottingham UK by Chris Fickling http://www.chrisficklingdesign.co.uk

                      This discussion is closed to further replies. Keep calm and carry on.