We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30277
    • 75 Posts
    First i am sorry for the subject but not sure how to call it and hope a mod change it with the right one smiley

    Ok i created my template all good, but i have some css, js or other scripts for using on specific pages but i dont want them appear on other pages.

    examples
    - I have a print.css and a print snipplet but i dont wanna have a print this article icon on a full thumbnail pic page.
    - I have two article pages which one of them translated to x lang and other y lang but not to x lang yet .
    - I want some script appear my homepage but not at other pages.
    - I have a page has to use a custom js file but adding it to my main template
    will make my other pages open in long time

    so how do you solve this smiley

    Thanks











      • 25663 MODX Staff
      • 12,272 Posts
      Create multiple templates would be the easiest solution.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 30277
        • 75 Posts
        Quote from: rthrash at Mar 26, 2007, 03:53 PM

        Create multiple templates would be the easiest solution.

        Hey before answer next time just wait till i post my question please geez

        grin thanks it was the fastest reply i get in my life

        Thats what i have , like 8 variation of same template and sure ill have more but i wanted to learn if im at the wrong truck smiley
          • 25663 MODX Staff
          • 12,272 Posts
          You can also do it with Template Variables, chunks, etc. and a single template. There’s usually about 3-4 ways to do the same thing in MODx. smiley
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 30277
            • 75 Posts
            I have couple chunks, snippets i use already, may be i should wait till i learn modx better

            Thanks rthrash