We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32670
    • 11 Posts
    I am recently busy with making a web page, at first I didn’t know Modx and I wanted to start with CMS. So I kind of learned to use Joomla.
    But now, a friend of mine told me he is making web pages with Modx, and I saw the easiness of it. I was quite far with with joomla, but now I want to start with Modx because it is just faster and uses so far less modules and plug ins then Joomla which you don’t even use.

    Now the fact of starting this topic is because I want to know how I can easily copy or whatever, the Joomla template to Modx.
    I hope someone can help me

    Greetings,
    W van Terwisga

    I’m sorry when I posted this topic in the wrong board
      MODX Revolution 2.2.4
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Make your Joomla page, and when it’s being displayed in your browser do a "view source" and copy/paste the whole HTML page into a MODx template form field. Then just replace the various content bits with the appropriate MODx tags (Wayfinder for menus, [[*content]], or [*content*] if you’re using Evo, for the main content of the page, etc). Make sure the links to the CSS and any JS files are pointing to the correct location for those files; in Evo they tend to be in assets/templates/name-of-template and assets/js.
        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
        • 32670
        • 11 Posts
        Allright, thanks for the help!
        But, I have 1 big header of 2 pictures on top of each other, how do i put them into modx? Just copy it to the template path?

        //edit: Solved the last question

        Now my question is how do I change the [[++template_path]] variable?
          MODX Revolution 2.2.4
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          I’m afraid I can’t help you there; I don’t do Revo. I don’t even know what [[++template_path]] is.
            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
            • 32670
            • 11 Posts
            [[++template_path]] is a variable which holds the path of the template files, and I want to change that.
            But when you can’t help me, I hope someone else is able to do so (:
              MODX Revolution 2.2.4
              • 22840
              • 1,572 Posts
              Never seen that one before and doing a search in the settings for template and path they don’t bring up anything that represents a template path, where did you see the [[++template_path]] referenced ??
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                The thing is, MODx doesn’t limit where you can put stuff. Templates (the HTML) are stored in the database and are managed through the Elements=>Templates tab in the Tree. External files (css, js, images) can be put anywhere you want; you just need to have the paths in the template correct, as you would in any HTML page.

                http://bobsguides.com/where-to-put-stuff.html
                  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
                  • 3749
                  • 24,544 Posts
                  LOL. I forgot that page existed. wink
                    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
                    • 32670
                    • 11 Posts
                    Quote from: paulp at Apr 23, 2011, 02:54 PM

                    Never seen that one before and doing a search in the settings for template and path they don’t bring up anything that represents a template path, where did you see the [[++template_path]] referenced ??

                    A friend of mine, which gave me the tip to use Modx. He uses when he calls an css filethe following URL ’[[++template_path]]/templatename/styles/style.css’
                    And [[++template_path]] is at his Modx webpage linked to assets/templates.




                    But I guess you all do not know this variable? How can I else be able to make an easy variable that links to assets/templates ?
                    Because entering the whole link into the meta tag is just too much code, it can be made easier.
                      MODX Revolution 2.2.4
                      • 22840
                      • 1,572 Posts
                      Create a chunk called template-path with the following code in it:

                      assets/templates


                      then use [[*template-path]] in your templates