We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12684
    • 118 Posts
    I am trying to list 2 User groups on one page but I need to be able to apply separate templates and also be able to control both via CSS seperatly as well.

    I tried placing 2 WLPE calls on one page and it would work except that they both try to use the &viewProfileTpl from both calls.

    For example...

    <div id="Vendors">
    [!WebLoginPE? &type=`users` &viewProfileTpl=`VendorProfilePublic` &usersList=`Bridal Shops:default:default:internalKey:ASC:webgroup(Vendors),state(17),category(1)`!] 
    </div>
    
    <div id="VendorsB">
    [!WebLoginPE? &type=`users` &viewProfileTpl=`VendorBProfilePublic` &usersList=`Other Listings:default:default:internalKey:ASC:webgroup(VendorsB),state(17),category(1)`!] 
    </div>


    I need a way for these to be on the same page but to not effect one another.

      • 28033
      • 925 Posts
      Known bug with the 1.3.x versions. I think Scotty, or someone else, would have to do a complete rewrite of that function to get it to work.
        My Snippets
        -> PopUpChunk v1.0
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        What if you had them on two different documents, and used a TV with @DOCUMENT or even Ditto to get the two documents displayed on one page?
          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
          Susan,

          I did think about doing this, however I have this WLPE call on over 200 documents already, due to filtering 50 states and then nuermous categories for each state. Plus if I go to add cities it will get worse. So then if I was to add 2 more documents to each of these calls... well you get the idea. It really jsut means that I will have a ton of documents.

          Unless of course having that many documents will not be a problem.
            • 4041
            • 788 Posts
            In the past on some of my snippets which suffered from similar issues I had to use the unset($aggravating_variable); technique at the end of the snippet to be able to have multiple instances on the same page.

            I haven’t looked to see where in the snippets or files this could possibly be used in this situation though.
              xforum
              http://frsbuilders.net (under construction) forum for evolution