We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19897
    • 1 Posts
    Dear All Developer,

    I’m testing now Modx CMS and it rocks. But i have some difficulties with new templates installation. I have read this tutorials(http://modxcms.com/template-basics.html) , but it is not very clear to me.
    I have download this template (http://modxcms.com/forums/index.php/topic,6235.0.html) and want to install it.

    So i do the following things...Login as admin and resources->Manage resources-> New templates. And at there give a templates name. And copy all this code and save it.

    Templates.txt
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
    
    <!-- this template was designed by http://www.tristarwebdesign.co.uk - please visit for more templates & information - thank you. -->
    
    <head>
    
    <meta http-equiv="Content-Language" content="en-us" />
    
    <title>[(site_name)] - [*pagetitle*]</title>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
    <meta name="keywords" content="[(site_name)] - [*pagetitle*],More keywords,goes,here" />
    <meta name="author" content="Your Name / Original design: Tristar Webdesign - http://www.tristarwebdesign.co.uk/" />
    
    <!-- style sheet links -->
    <link rel="stylesheet" type="text/css" href="[(base_url)]assets/templates/judgement/style.css" />
    
    </head>
    
    <body>
    <div id="container">
    
    	<div id="header">
    		<div id="logo"><h1>[(site_name)]</h1></div>
    	</div>
    	
    	<div id="left">
    	
    		navigation links:
    		
    		<div>
    			[!DropMenu!]
    		</div>
    		
    <!-- 
    		<div class="submenu">
    		
    			sponsored links:
    			
    			<div>
    				[!DropMenu!]
    			</div>
    		</div>
    -->
    	</div>
    	
    	<div id="right">
    	
    	<h1>[*longtitle*]</h1>
    	
    	[*content*]
    
    	</div>
    	
    	<div id="footer">
    		 	{{judge_footer}} 
    	</div>
    
    </div>
    </body>
    
    </html>
    


    But it dosen’t work correctly. Can i upload templates design files from Admin Area?

    many thanks in advance.

    mmlug
      • 7923
      • 4,213 Posts
      You also have to upload the css file to your webserver into assets/templates/judgement/ directory as it’s included in the head section.

      Or you could do the css file as modx document.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 27226
        • 186 Posts
        Due to the flexibility of MODx - and the lack of a "template-exchange" method - there are some things to consider when re-using MODx templates: Whenever, for instance, you encounter something like "{{blabla}}" you should be aware of the fact, that this is a reference to a so-called "chunk" (named "blabla" in this example) which is stored separately from the template and thus must be created by you (as a "resource") in the MODx-manager. The same applies to other references, which are identified by square brackets "[ ]".
        So, before being able to re-use other templates you should make yourself able to detect references to MODx-elements which reside outside the template and must be created separately before being able to use the template in its entirety.