We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 47401
    • 295 Posts
    hi

    on our website we show the image of the user who has created the page. so on all our pages we have page created by xxx user, but in the form of an image.

    does anybody know how I can go about doing this? how can I choose (as a TV) the name of the person who has created the page, and to show the image of that user?

    Cheers
      • 46886
      • 1,154 Posts
      I am surprised no one has given you any reply. I wonder if you are not using some keywords that people can work with.

      So this is about ownership of a resource, right? But I am not sure if resources have owners.

      Can a resource made by a user be limited to one template? If so, that might work here.

      There is no doubt this can be done, but I am not sure exactly how.
        • 47401
        • 295 Posts
        Hi
        thank you for your reply
        i have found a way to do this using migx, pdoresources and TV's smiley

        basically on the category and article pages in the form of a TV have an option select box to select a specific user. however this way is a work around and does not modify any deep core files.
          • 47401
          • 295 Posts
          i can provide the exact steps i took to do this if you would like me to publish them?
            • 42046
            • 436 Posts
            Could you not use pdoUser and the [[*createdby]] tag to get the user that created the resource?
              • 47401
              • 295 Posts
              hi dan

              it doesnt look like that you can add an image to a user account. becuase im simply adding an image to a user account but just using tv's using pdoresource
                • 42046
                • 436 Posts
                Single extra solution:

                http://modx.com/extras/package/avatar

                <img src="[[+createdby:avatar.url=`assets/images/defavatar.png`]]">