We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26002
    • 30 Posts
    Hello, am here with my questions again. Please, I want to know if I can design the whole site with templates and link the various templates as pages? For instance, the home page doesnt have a [*content*] tag because of the structure of the site I want(not a three column design). So am thinking if I can have other templates with the kind of structure I want and link the various anchors and links to the other templates i designed as pages.

    To further clarify, I have a home page which in itself is a template without a [*content*] tag. inside this template is information and links that normaly should reference pages but I want to make the links call the other templates which I have named, services, contacts, about, etc. . Can this be done? If it can, my life is made and I will be very happy for any help/suggestions
      • 25663 MODX Staff
      • 12,272 Posts
      No reason in the world you can’t do that ... although my personal question is why you would want to do so?
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 26002
        • 30 Posts
        Quote from: rthrash at Oct 17, 2006, 04:56 PM

        No reason in the world you can’t do that ... although my personal question is why you would want to do so?

        Thanks for the reply. If am to use chunks for left and right contents, and have the [*content*] tag in the middle, the link to the services, contact etc pages will not display well in the center colunm because of its structure. I dont know what else to do to keep the structure of what I already did. When I was playing around with my installation, I saw that creating the page with the same structure and design with a template and associating it with that template, works but I almost feel its sacriligous to this CMS. I mean its a crude way and am wondering if it might not cause performance issues .So am thinking if there is a tag that can just place in links that will link the templates instead of creating pages and identical templates to link. Do you have an idea how I can work this around? I see some people that are not doing the basic three column site how can i be part of that. smiley
        thanks.
          • 25663 MODX Staff
          • 12,272 Posts
          Have a link to a comp or HTML markup? I’m having a hard time getting the vision.
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 7030
            • 45 Posts
            Hi Salvage,

            From what I understand, you want to make a website with different layouts and designs per page.
            Your homepage needs no content per se and only needs to link to the pages you will make in modx.

            Here is option one:
            1. make a master template only containing html>head>body

            2. inside the body place a [*content*] variable
            3. paste your html for each page into each content area for each page you make.
            4. so homepage has your home html, your second page has its own layout html..and so forth.
            5. once you have made your pages, return to your homepage content, get the ID’s for the other pages, and in your href’s place [~ ~] , inside the tilde’s place the page ID for the correlating page.

            ALTERNATIVELY, option two:
            1. create mutiple templates,
            2. define the content areas [*content*]
            3. add content into those areas
            4. apply the specific template per page.


            Personally Think this is long winded, and you are not fully utilising the power of modx, but going on what you have asked for this seems to be what you are looking for.

              Smoking is one of the leading causes of statistics.
              • 26002
              • 30 Posts
              Quote from: demwunz at Oct 17, 2006, 10:42 PM

              Hi Salvage,

              From what I understand, you want to make a website with different layouts and designs per page.
              Your homepage needs no content per se and only needs to link to the pages you will make in modx.

              Here is option one:
              1. make a master template only containing html>head>body

              2. inside the body place a [*content*] variable
              3. paste your html for each page into each content area for each page you make.
              4. so homepage has your home html, your second page has its own layout html..and so forth.
              5. once you have made your pages, return to your homepage content, get the ID’s for the other pages, and in your href’s place [~ ~] , inside the tilde’s place the page ID for the correlating page.

              ALTERNATIVELY, option two:
              1. create mutiple templates,
              2. define the content areas [*content*]
              3. add content into those areas
              4. apply the specific template per page.


              Personally Think this is long winded, and you are not fully utilising the power of modx, but going on what you have asked for this seems to be what you are looking for.


              Thanks demwunz. Yes I want to make a website with different layouts and designs per page(sorry, rthrash for my not being able to explain well). @demwunz, I will try the first option.It looks cleaner and more logical. The second option is actually what am trying to implement now but like you said, It doesnt sound nice, does it?. Thanks for the tips.