We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17282
    • 283 Posts
    Hi .. im just using this excellent tutorial to build a site .. what i really need to know IS ....

    Is it possible to make ALL links that i create using the content manager use the class="loadinto-MyDiv" and rel="mytemplate" code .. so my end user doesnt have to edit the source to do this ?

    That would be GREAT!

    thnx for your help
      Everytime you use Flash ... a puppy dies .....
      R.G Taylor
      • 22815
      • 1,097 Posts
      A plugin could probably handle that.
        No, I don't know what OpenGeek's saying half the time either.
        MODx Documentation: The Wiki | My Wiki contributions | Main MODx Documentation
        Forum: Where to post threads about add-ons | Forum Rules
        Like MODx? donate (and/or share your resources)
        Like me? See my Amazon wishlist
        MODx "Most Promising CMS" - so appropriate!
        • 17282
        • 283 Posts
        Quote from: PaulGregory at Nov 21, 2006, 10:34 AM

        A plugin could probably handle that.

        do you have any idea how i would go about it ...
        or .. any ideas how i would write a snippet that would do say this :

        if i create a snippet called [[sitelink]] and make that snippet output <a class="loadinto-AjaxLoad" rel="Plain" href="LINK VARIABLE">LINK VARIABLE NAME</a>

        im no good at coding .. but my thoughts are that LINK VARIABLE and LINK VARIABLE NAME could be assigned to the snippet in the normal way .. so if you did [[sitelink? &LINKVARIABLE=`News.html` &LINKVARIABLENAME=`NEWS`]] that would do nicely .. problem is .... i have no idea how to code it!

        Could anyone help .. please?

        Thnx

        Martyn
          Everytime you use Flash ... a puppy dies .....
          R.G Taylor
          • 17282
          • 283 Posts
          Ok .. heres another one ...

          Im using Ditto for news ... How do i hack ditto so all the Title and read more links all contain the class="loadinto-MYVARIABLE rel="plain" attributes?

          Again .. any help greatly appreciated!
          Martyn
            Everytime you use Flash ... a puppy dies .....
            R.G Taylor
            • 17282
            • 283 Posts
            Quick update sad i now need to do the same thing to wayfinder!
              Everytime you use Flash ... a puppy dies .....
              R.G Taylor
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              Put whatever you want in your template chunks. That’s what they are for wink
                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
                • 17282
                • 283 Posts
                Quote from: sottwell at Nov 21, 2006, 12:30 PM

                Put whatever you want in your template chunks. That’s what they are for wink

                cant seem to figure it out .. for instance in ditto .. how can i include stuff inside the [+LINK+] tag ?
                thnx

                Martyn
                  Everytime you use Flash ... a puppy dies .....
                  R.G Taylor
                  • 25423
                  • 47 Posts
                  How to insert java scripts in ajax chunk? huh
                    Excuse for bad English
                    • 19315
                    • 84 Posts
                    Hi,

                    This is great - I would love to use this on my site for navigation. However, there is one thing that I have noticed: if you open a link in a new tab/window, the the 2nd template (nameOfTemplateForContentOnly in the tutorial) is used - without navigation aides etc. Is there a way to make it open with the full template when opened ini a new tab/window?

                    Michal

                    edit: Corrected typo
                      • 16429
                      • 254 Posts
                      Perhaps adding some Javascript can (I don’t know, I can only guess) obtain the results you need.

                      Consider that the JS, as the author states, it’s aimed to load small pieces of information and not entire pages. You can use this method to navogate a site, but that’s not the use it’s intended for: there are some drawbacks as you have found.
                        kudo
                        www.kudolink.com - webdesign (surprised?)

                        [img]http://www.kudolink.com/kudolinkcom.png[/img] [sup]proudly uses[/sup] [img]http://www.kudolink.com/modx.png[/img]