We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14417
    • 12 Posts
    I’m trying to build a "load-into-iframe" type menu for a side-sub navigation menu. I put my link code in the innerTpl chunk. However, its just rendering the normal link. Is it possible to do this?

    InnerTpl Chunk:
    <li[+wf.id+][+wf.classes+]>
    <a href="javascript:loadintoIframe(’myframe’, ’[+wf.link+]’)" [+wf.classes+] title="[+wf.title+]" [+wf.attributes+]>[+wf.linktext+]</a>
    [+wf.wrapper+]
    </li>
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      What does a "view source" of the rendered page look like? The tpl can be anything at all that you want; if your tpl is not rendering at all then what does your Wayfinder snippet call look like? If it’s rendering but not working, then the problem will lie in the javascript involved.
        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