We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10226
    • 412 Posts
    I am trying to use gwidgets for expanding inline content. It requires and anchor for each inline item. My page titles for this section of the site are short but relevant so I thought they would work well. I plugged them in and... my anchor becomes site_root/#[+pagetitle+] so I did some static coding to make the link proper - site_root/page.php#[+pagetitle+]. That keeps me on the right page, but nothing happens. Anything I am missing?

    here is my chunk for the ditto template..

    <div id="proleft">
       <a href="#[+pagetitle+]" class="gexpander"><h3>[+faq_q+]</h3></a>
    		<div id="[+pagetitle+]" style="display:none;">
    			[+faq_a+]
    		</div>
    </div>


    and here is the html output..

    </div><div id="proleft">
       <a href="q_and_a.php#test_a" class="gexpander"><h3>click to test</h3></a>
    		<div id="test_a" style="display:none;">
    			Inline expanded content!
    		</div>



    thanks!
      • 11975
      • 2,542 Posts
        Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
        • 10226
        • 412 Posts
        hmm.. ok so I created a new plugin and posted the code from that post. I see no difference in the returned code, or end result. I removed the page i coded in, but that took me back to my original problem. Then I thought, well maybe it is working. So I clicked on an anchor for the top of the page, scrolled to the bottom and hit refresh, nothing happened. I recall that should take me to the anchor (back at the top of the page).

        Might I have some conflicting CSS?

        ...I’ll take a look at everything again in the meantime.

        Thanks
          • 11975
          • 2,542 Posts
          Did you check the required event in the plugin configuration tab ?

          :-)
            Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
            • 10226
            • 412 Posts
            Honestly, I have no idea what you are asking.. I see nothing about required events on the any of the plugin tabs sad

              • 10226
              • 412 Posts
              ... nevermind, I installed the plugin right. FF was just being crappy. well I am back to issue of my anchors not working. The pages load and the links are proper now, but nothing happens when I click on an anchor (well the URL changes).

              So could this be a CSS issue?
                • 10449
                • 956 Posts
                My crystal ball is in maintenance... cool do you have a live URL to look at?
                  • 10226
                  • 412 Posts
                  umm.. hmm have to make it public.. ok.. I don’t think anyone knows we exist! lol

                  http://sweetskies.fruitwerks.us/faq.php

                  is the page in question.

                  if I can get this to work I am going to trash thickbox because it is a bit bloated compared to gwidgets..

                  hmm the css for gwidgets broke a lot of my pages >:(

                  I have removed the thickbox css and I no longer have the issues created by the gwidgets css
                    • 28042 ☆ A M B ☆
                    • 24,524 Posts
                    That’s an awful lot of JS libraries loaded, could there be a conflict somewhere amongst them?
                      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
                      • 10226
                      • 412 Posts
                      Yes, I did have a lot of js! I have removed over half of it since posting. I did make a minimal page under the home menu, and that does not work either. - But I do have a lead. I will update if it changes anything.