We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29657
    • 4 Posts
    TheBlackMarket Reply #1, 18 years ago
    Hello.
    I’m running a site with my friend, and this site used to run on the Guppy CMS. When Guppy stopped working properly, I switched to ModX, and I’ve been trying to replicate some of Guppy’s old functionality. I’ve managed to figure out most of what I’ve needed, but so far I’m stumped on this...
    I’m using the NewsListing snippet with a template that I made for posts. On this post template, an image is to be shown (as an subject marker of sorts) that is selected by name from a dropdown menu. Depending on which of us posts, the image would be different. For example, if I were to write an article with it’s subject being "Misc", the result would yeild this image: , while yeilding my partner this image:, and so on. My first attempt in gaining this functionality was to make a Dropdown List Menu template variable with the names of the subjects and the following code in the post template chunk I made for the NewsListing snippet:
    <img src='assets/templates/blkmkt/img/subject/[*createdby*]/[*subject*].gif' align="right">

    The Template Variable had "Misc" as it’s default value, and it yeilded a , but every post ended up yeilding the same image regardless of the subject chosen or the author’s ID number. Forgive me if this is a bit unclear, but would any of you kind folks know how to remedy the situation?
    Thank you for your time.
      Fire! It’s nature’s water!
      • 18397
      • 3,250 Posts
      MARKSVIRTUALDESK Reply #2, 18 years ago
      In NewsListing template chunk you need to use:

      <img src='assets/templates/blkmkt/img/subject/[+tvcreatedby+]/[+tvsubject+].gif' align="right">
      
        • 29657
        • 4 Posts
        TheBlackMarket Reply #3, 18 years ago
        Thanks a lot, that did the trick.
          Fire! It’s nature’s water!