We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12684
    • 118 Posts
    Is it possible to call upon a snippet to create a documents title?
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Give it a try wink
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 12684
        • 118 Posts
        I did and it just shows the snippet name. Is this your way of telling me that "No, it is not possible"?

        When I use [[snippetname]] in the title it does not work. It shows [[snippetname]].

        That is why I am wondering if there is another way of doing it.

        I have a snippet that shows a users name, so I would like to be able to use this for when pages are created for the user. For labeling purposes.
          • 19164
          • 1,215 Posts
          Use TV, make snippet call in this TV and use this TV as label (if you need this label on frontend, not in backend document tree).
            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]
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Ok, it won’t show the snippet’s output in the document tree, but it does work for the front-end. When the Manager loads the document tree, it doesn’t look for snippets or TVs (or anything else, for that matter), it simply uses what it finds in the "pagetitle" field in the database. But if the [*pagetitle*] tag in the document or in a template has a snippet or a TV, it gets processed when the document is parsed for output.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 12684
              • 118 Posts
              Thank you,

              But I need this to happen in the backend tree. After having dozens and dozens of members sign up and creating new pages when they register it would be very helpful to be able to sort through the documents by username as an identification at the tree.

              By the way, here is what I am using...
              http://modxcms.com/forums/index.php/topic,25087.0.html