We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27330
    • 884 Posts
    Hi all,
    I want to make a page ’meet the crew’ where I have a list of people and when user click on a name more details about the person are shown. I want to use TVs for the personal info and somehow display it on the same page without taking the user to another page.

    I was thinking on using EasyFAQ and to use a ditto call as the answer, however if someone knows if I can do it using ditto only that will be way better as the crew list can grew without a need to update easyFAQ.

    Hope I make sense and that someone can send me in the right direction...
    I attached a screener of what I want to do....


      • 3707
      • 241 Posts
      Some kind of accordion menu js should do the trick. Then just format the Ditto output to match the script’s requirements.
        • 3749
        • 24,544 Posts
        Using EZfaq, all the information would be in a single unplublished document that you can edit at will in the Manager:

        Q:Joe Blow
        A:Joe Blow’s information here
        you can have as much as you like here.
        Q:Dennis Connor
        A:Dennis Connor’s info here.
        you can have as much as you like here.

        Q:END-FAQ
        work in progress can go here without being shown

        The only question is whether you’d be able to style it as you want, although some people have put flash graphics into it. I have a newer version of EZfaq that lets you use the Extra: tag to put stuff between the Q:/A: pairs but it hasn’t been posted to the repository yet.

        Let me know if you want to test it. wink

        There’s an EZfaq tutorial at the site in my sig.
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
          • 27330
          • 884 Posts
          I got some jquery acoordion menu on the way, working half way so far, the list opens but won’t close smiley
          but I would love to test the new version and see if I can css it to my needs. thanks!
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            For an "our people" section on one site, I’m using Ditto [[Ditto? &parents=`45` &tpl=`listPeople` &display=`all`]] with an extra snippet
             [[setPeopleJs]]
            ... blah blah...
            <div id="people">
            <h3>Translators</h3>
            <div id="translators">
            [[Ditto? &parents=`45` &tpl=`listPeople` &display=`all`]]
            </div>
            <h3>Administrative Staff</h3>
            <div id="administrators">
            [[Ditto? &parents=`46` &tpl=`listPeople` &display=`all`]]
            </div>
            </div>
            

            The "listPeople chunk:
            <div class="name">[+pagetitle+]</div>
            <div class="bio">[+content+]</div>

            The setPeopleJs snippet is just to add the js to the page:
            <?php
            $src = "assets/js/mootools1.11.js";
            $modx->regClientStartupScript($src);
            $src = "assets/js/people.js";
            $modx->regClientScript($src);
            ?>

            And the mootools-based accordion:
            window.addEvent('domready', function(){
                var accordion = new Accordion('div.name', 'div.bio', {
                	opacity: false,
                	onActive: function(toggler, element){
                		toggler.setStyle('color', '#ff3300');
                		element.setStyle('display', 'block');
                	},
                    alwaysHide: true,
                    display: 'all-closed',
                	onBackground: function(toggler, element){
                		toggler.setStyle('color', '#222');
                		toggler.setStyle('font-weight', 'normal');
                	}
                }, $('people'));
                
            });

            This gives me two lists, one for "regular" employees and one for "administrators". The container opens nicely in the space to the left of the lists, with an image and bio text.
            /********** Lists **********/
            #people, #content {
                position: relative;
            }
            div.name {
                width: 250px;
                margin-left: 20px;
                cursor: hand;
                cursor: pointer;
                color: #222;
            }
            div.bio {
                position: absolute;
                display:none;
                font-size: 0.8em;
                padding: 5px;
                top: 15px;
                right: 80px;
                background-image: url(images/wrapper_bg.jpg);
                text-align: justify;
                width: 300px;
            }
            div#trans div.bio {
                top: 100px;
            }
            div.bio img {
                float: left;
                margin-right: 5px;
                padding: 2px;
                border: 1px solid #909090;
            }
            
            

              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
              • 27330
              • 884 Posts
              Thanks for the replies, Susan do u have a link I can see the results?
              This is what I got so far, still need some styling but I almost got it smiley
              better safe than sorry
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                Unfortunately I posted a link when I had first done the site, and somebody used their contact form to tell them they got the link from the forums, and how did they do thus-and-so. The client was very unhappy about that, so I can’t post any links; sorry. Yes, I know, getting upset over links to their site which offers a service, and they want to show well on Google, is kind of silly, but that’s how it is with clients rolleyes
                  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
                  • 27330
                  • 884 Posts
                  whatever they smoke its good if they dislike some free extra traffic smiley
                  lucky me my contact form sends the report emails to me wink

                    • 3749
                    • 24,544 Posts
                    Quote from: sinbad at Oct 01, 2008, 05:20 PM

                    I got some jquery acoordion menu on the way, working half way so far, the list opens but won’t close smiley
                    but I would love to test the new version and see if I can css it to my needs. thanks!

                    Here you go:

                      Did I help you? Buy me a beer
                      Get my Book: MODX:The Official Guide
                      MODX info for everyone: http://bobsguides.com/modx.html
                      My MODX Extras
                      Bob's Guides is now hosted at A2 MODX Hosting
                      • 27330
                      • 884 Posts
                      Muchos gracias Bob!